neherlab / covid19_scenarios

Models of COVID-19 outbreak trajectories and hospital demand
https://covid19-scenarios.org
MIT License
1.36k stars 355 forks source link

Update CAN-British Columbia.tsv #802

Open hdsheena opened 3 years ago

hdsheena commented 3 years ago

Added hospitalization numbers since Aug 6. If others are interested, I'll go back further. Let me know if I need to add "dummy" data to weekend rows, and how to best do so.

Related issues and PRs

None -

Description

Added hospitalization numbers since Aug 6. If others are interested, I'll go back further. Let me know if I need to add "dummy" data to weekend rows, and how to best do so.

Impacted Areas in the application

data for BC Canada

Testing

Load this data (BC) wherever it's used to be sure it works!

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

ivan-aksamentov commented 3 years ago

Hi @hdsheena, thanks!

This .tsv file is auto-generated. We periodically re-download data from our sources https://github.com/neherlab/covid19_scenarios/blob/master/data/sources.json and create all these .tsv files from scratch, so your changes will be overwritten on next update unfortunately.

Many countries have dedicated scripts for this. For example, the .tsv file for Canada is generated using this script: https://github.com/neherlab/covid19_scenarios/blob/master/data/parsers/canada.py

Do you have a source from where we could pull these hospitalization numbers automatically once in a while? If not, maybe you could create such a source? A git repo with a CSV, JSON or similar file would be perfect. We would then merge the data from the current source with the new one.

Also, it is important that the sources update often themselves. In case you create a new data repo, will you be able to provide periodic updates for it?