fix: Extrapolation of mean vaccination rate had an off by one error
This commit is contained in:
parent
37a3026132
commit
7cba369103
1 changed files with 1 additions and 1 deletions
2
plot.py
2
plot.py
|
@ -61,7 +61,7 @@ days_extrapolated = int(np.ceil(to_be_vaccinated / mean_vaccinations_daily))
|
||||||
|
|
||||||
extrapolated_dates = np.array([dates[0] + datetime.timedelta(days=i) for i in range(days_extrapolated)])
|
extrapolated_dates = np.array([dates[0] + datetime.timedelta(days=i) for i in range(days_extrapolated)])
|
||||||
|
|
||||||
extrapolated_vaccinations = mean_vaccinations_daily * range(days_extrapolated)
|
extrapolated_vaccinations = mean_vaccinations_daily * range(1, days_extrapolated + 1)
|
||||||
|
|
||||||
mean_vaccinations_daily_up_to_date = np.round(cumulative / range(1, len(cumulative) + 1))
|
mean_vaccinations_daily_up_to_date = np.round(cumulative / range(1, len(cumulative) + 1))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue