epiforecasts / covidregionaldata

An interface to subnational and national level COVID-19 data. For all countries supported, this includes a daily time-series of cases. Wherever available we also provide data on deaths, hospitalisations, and tests. National level data is also supported using a range of data sources as well as linelist data and links to intervention data sets.
https://epiforecasts.io/covidregionaldata/
Other
37 stars 18 forks source link

Revised USA for changed upstream format - partial fix for #430 #431

Closed RichardMN closed 2 years ago

RichardMN commented 2 years ago

This adjusts the download and clean_level_2 for the USA data so that it will calculate the number of years (!) of data to download and then download each separate yearly file from the @nytimes repo.

I suspect that the filename and directory structure may change before we get much beyond 2025 but this is "future-proofed" in some sense.

One of the columns appears to have been renamed in the level 2 data upstream but I think this is fixed too.

github-actions[bot] commented 2 years ago

This PR has been flagged as stale due to lack of activity

Bisaloo commented 2 years ago

Commented about it in https://github.com/epiforecasts/covidregionaldata/issues/430#issuecomment-1030144617. Briefly, it doesn't look like the data source will be changing in this case. It was just the result of a confusingly worded announcement. If @RichardMN agrees, we can then close this PR.

RichardMN commented 2 years ago

As @Bisaloo has pointed out in the #430 conversation my PR had been based on a misunderstanding of the upstream data and isn't necessary.