Skip to content

Commit

Permalink
feature 1653 main_v4.1 climo day_interval NA value (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe authored Jun 22, 2022
1 parent 56cdbac commit 3b8dcdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions internal_tests/pytests/grid_stat/test_grid_stat_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,9 @@ def test_handle_climo_file_variables(metplus_config, config_overrides,
({'GRID_STAT_CLIMO_MEAN_DAY_INTERVAL': '30', },
{'METPLUS_CLIMO_MEAN_DICT': 'climo_mean = {day_interval = 30;}'}),
({'GRID_STAT_CLIMO_MEAN_DAY_INTERVAL': 'NA', },
{'METPLUS_CLIMO_MEAN_DICT': 'climo_mean = {day_interval = NA;}'}),
({'GRID_STAT_CLIMO_MEAN_HOUR_INTERVAL': '12', },
{'METPLUS_CLIMO_MEAN_DICT': 'climo_mean = {hour_interval = 12;}'}),
Expand Down
2 changes: 1 addition & 1 deletion metplus/wrappers/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ def handle_climo_dict(self):
}),
'time_interp_method': ('string', 'remove_quotes,uppercase'),
'match_month': ('bool', 'uppercase'),
'day_interval': 'int',
'day_interval': ('string', 'remove_quotes,uppercase'),
'hour_interval': 'int',
'file_type': ('string', 'remove_quotes'),
}
Expand Down

0 comments on commit 3b8dcdd

Please sign in to comment.