Skip to content

Commit 5f443de

Browse files
authored
Merge pull request #222 from UW-Hydro/develop
Prepare for 2.2.2 release
2 parents 5ad68a1 + b857e4c commit 5f443de

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docs/whats-new.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ What's New
55

66
.. _whats-new.2.2.0:
77

8+
v2.2.2
9+
-------
10+
Bug fixes
11+
~~~~~~~~~
12+
- Fixed bug where `utc_offset` doesn't get converted to the
13+
correct boolean when reading the configuration.
14+
815
v2.2.l
916
------
1017
Bug fixes

metsim/cli/ms.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ def to_list(s):
8383
else:
8484
forcing_files = conf['forcing']
8585

86+
# Ensure that parameters with boolean values are correctly recorded
87+
for bool_param in ['utc_offset', 'period_ending']:
88+
if (bool_param in conf.keys()
89+
and conf[bool_param].strip().lower() == 'true'):
90+
conf[bool_param] = True
91+
else:
92+
conf[bool_param] = False
93+
8694
# Update the full configuration
8795
conf.update({"calendar": conf.get('calendar', 'standard'),
8896
"scheduler": opts.scheduler,

0 commit comments

Comments
 (0)