Skip to content

Commit

Permalink
Merge pull request #222 from UW-Hydro/develop
Browse files Browse the repository at this point in the history
Prepare for 2.2.2 release
  • Loading branch information
arbennett authored May 18, 2020
2 parents 5ad68a1 + b857e4c commit 5f443de
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ What's New

.. _whats-new.2.2.0:

v2.2.2
-------
Bug fixes
~~~~~~~~~
- Fixed bug where `utc_offset` doesn't get converted to the
correct boolean when reading the configuration.

v2.2.l
------
Bug fixes
Expand Down
8 changes: 8 additions & 0 deletions metsim/cli/ms.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ def to_list(s):
else:
forcing_files = conf['forcing']

# 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
else:
conf[bool_param] = False

# Update the full configuration
conf.update({"calendar": conf.get('calendar', 'standard'),
"scheduler": opts.scheduler,
Expand Down

0 comments on commit 5f443de

Please sign in to comment.