COVIDAnalytics / THEMIS

A model framework to analyze tradeoffs of non-pharmaceutical policies in epidemics
Apache License 2.0
0 stars 0 forks source link

Raise NotImplementedError for policies that are not implemented in the cost functions #3

Open sakshamsoni97 opened 3 years ago

sakshamsoni97 commented 3 years ago

Currently implemented policies are 'No_Measure' and 'Lockdown'.

We want to gradually implement - 'No_Measure', 'Restrict_Mass_Gatherings', 'Mass_Gatherings_Authorized_But_Others_Restricted', 'Restrict_Mass_Gatherings_and_Schools', 'Authorize_Schools_but_Restrict_Mass_Gatherings_and_Others', 'Restrict_Mass_Gatherings_and_Schools_and_Others' and 'Lockdown'

Any other strings should give an error.

bro-opt commented 3 years ago

@MichaelLLi , I've implemented a bug fix for that, with example.py providing you with a basic unit test to see if implemented.

Commit id: https://github.com/COVIDAnalytics/THEMIS/commit/0874f4a98447a00ebcc54d3421568f00e9a704a6