Skip to content

Commit 6fa46b4

Browse files
authored
Fix #219 (#220)
* Fix #219 * Add whats new * Remove line * Address review
1 parent 6c7fff1 commit 6fa46b4

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ def to_list(s):
8383
else:
8484
forcing_files = conf['forcing']
8585

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
91+
8692
# Update the full configuration
8793
conf.update({"calendar": conf.get('calendar', 'standard'),
8894
"scheduler": opts.scheduler,

0 commit comments

Comments
 (0)