ImperialCollegeLondon / covid19model

Code for modelling estimated deaths and cases for COVID19.
MIT License
944 stars 271 forks source link

make-table fails if Italy is skipped #91

Open Sjors opened 4 years ago

Sjors commented 4 years ago

If you remove Italy from data/regions.csv, the model run throws an error due to these special case lines:

https://github.com/ImperialCollegeLondon/covid19model/blob/865806ff6f7afb393c7ba38ce3557641f5c3f3a6/make-table.r#L10-L11

That should be easy to prevent by checking if "Italy" is in countries.

There's also some special case code for the UK.

s-mishra commented 4 years ago

Hi @Sjors,

Thanks for pointing that out. We will amend that in the next release. Also the code for UK is just for handling a special case; it doesn't affect if UK is in there or not.