File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff 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+
815v2.2.l
916------
1017Bug fixes
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments