act-now-coalition / covid-data-model

Data backend providing computed data for the graphs displayed at https://covidactnow.org
https://covidactnow.org/
MIT License
149 stars 57 forks source link

Estimate 1st dose data if it's been missing recently. #1155

Closed mikelehen closed 3 years ago

mikelehen commented 3 years ago

Previously we wouldn't estimate 1st dose data from completed if there was any 1st dose data at all (even if it was really stale).

With this change, we look back 16 days and if there's no 1st dose data in that span, then we estimate 1st dose from completed. This is necessary since some of the new CDC timeseries data has stale 1st dose data for some reason and we want to go ahead and replace it with estimated data so we can use it on the website.

Tested via: ./run.py data update. Data didn't change (we don't have any providers with up-to-date complete data but stale 1st dose data presently).

cc/ @smcclure17