Skip to content

Commit

Permalink
Bugfix (decl global vars in measures).
Browse files Browse the repository at this point in the history
  • Loading branch information
djgroen committed Mar 31, 2022
1 parent d822f2c commit a6c545c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions facs/base/measures.py
Expand Up @@ -49,6 +49,7 @@ def read_vaccine_yml(e, date, ymlfile="covid_data/vaccinations_example.yml"):
__measure_social_distance = 0.0

def read_lockdown_yml(e, date, ymlfile="covid_data/measures_uk.yml"):
global __measure_mask_uptake, __measure_mask_uptake_shopping, __measure_social_distance
with open(ymlfile) as f:
m = yaml.safe_load(f)

Expand Down

0 comments on commit a6c545c

Please sign in to comment.