We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0716a0 commit 4d18b47Copy full SHA for 4d18b47
metsim/cli/ms.py
@@ -83,11 +83,13 @@ def to_list(s):
83
else:
84
forcing_files = conf['forcing']
85
86
- if ('utc_offset' in conf.keys()
87
- and conf['utc_offset'].strip().lower() == 'true'):
88
- conf['utc_offset'] = True
89
- else:
90
- conf['utc_offset'] = False
+ # Ensure that parameters with boolean values are correctly recorded
+ for bool_param in ['utc_offset', 'period_ending']:
+ if (bool_param in conf.keys()
+ and conf[bool_param].strip().lower() == 'true'):
+ conf[bool_param] = True
91
+ else:
92
+ conf[bool_param] = False
93
94
# Update the full configuration
95
conf.update({"calendar": conf.get('calendar', 'standard'),
0 commit comments