Closed Inglezos closed 3 years ago
Please use the issue template for bugs with minimal codes.
For the first one, why extrapolation with spline failed?
I created pull request #425 to supress UserWarning
in JHUDataComplementHandler._monotonic()
and fix JHUDataComplementHandler._recovered_sort()
.
For the second one, do you mean if r > self.max_ignored and r > (c - f) * 0.1:
should be removed? If yes, I agree and removed it with the pull request.
Yes that is what I meant. I approved these changes. I don't know why spline failed, perhaps it could not find suitable line to fit since order was 1 (I think with order=2 it could find).
Thank you. However, I have just found that full complement was not performed for Francce with this change.
I think that for France we have original valid recovered data, why full compliment is needed? They are continuously updated up until yesterday to max value 179087. There are no missing.
With the figure, I thought Recovered << Confirmed. I will check another source.
No discreapancy. We may need to use 179087 at this time.
Yes the recovered data as they are provided by JHU CSSE are way lower than the confirmed, but they seem valid. I think for this case it would be an exaggeration to fully compliment them, since they are not missing or totally invalid.
Thank you for confirmation. The pull request was merged and I will close this issue. Because this is a fatal error for France, new minor version 2.13.1 will be released.
Summary
France has two issues: The first one, as the code currently is, is that during the Scenario call, it throws a:
which means that a spline action failed during the complement.
The second and major issue is the fact that the recovered data for France seem okay, even though they are kinda much lower than confirmed. I mean it would be more correct to let them be as they are. The condition that indicates wrongly the full compliment is in
_recovered_full()
ther > (c - f) * 0.1
.Since we compare right after that how close r is to c, using
sel_2
, I think it would be better to just remove it.