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

New data source for Switzerland - fix for #412 #429

Closed RichardMN closed 2 years ago

RichardMN commented 2 years ago

This is a WIP because the data cleaning hasn't been written yet, but check out the download function!

This addresses #412. As it is it has pushed the old Switzerland code into a new class (SwitzerlandAlt which has the amusing senses of both "old Switzerland" and "alternate Switzerland") and would replace them with the new Switzerland class.

The download function grabs a JSON file to determine which CSV files to download and uses both the download and the download_JSON methods from DataClass.

Cleaning code is to follow. There are other data streams available (including breaking out the data according to vaccination status) so I am open to votes on which to try to include and how.

github-actions[bot] commented 2 years ago

👋 Thanks for opening this pull request! Can you please run through the following checklist before requesting review (ticking as complete or if not relevant).

Thank you again for the contribution. If making large scale changes consider using our pre-commit hooks (see the contributing guide) to more easily comply with our guidelines.