Skip to content

Commit

Permalink
feature #1787 allow NA instead of only integers for hour_interval (#1788
Browse files Browse the repository at this point in the history
)
  • Loading branch information
georgemccabe committed Sep 9, 2022
1 parent d9623e5 commit 320ebfb
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 @@ -484,6 +484,9 @@ def test_handle_climo_file_variables(metplus_config, config_overrides,
({'GRID_STAT_CLIMO_MEAN_HOUR_INTERVAL': '12', },
{'METPLUS_CLIMO_MEAN_DICT': 'climo_mean = {hour_interval = 12;}'}),
({'GRID_STAT_CLIMO_MEAN_HOUR_INTERVAL': 'NA', },
{'METPLUS_CLIMO_MEAN_DICT': 'climo_mean = {hour_interval = NA;}'}),
({
'GRID_STAT_CLIMO_MEAN_FILE_NAME': '/some/climo_mean/file.txt',
'GRID_STAT_CLIMO_MEAN_FIELD': '{name="CLM_NAME"; level="(0,0,*,*)";}',
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 @@ -1500,7 +1500,7 @@ def handle_climo_dict(self):
'time_interp_method': ('string', 'remove_quotes,uppercase'),
'match_month': ('bool', 'uppercase'),
'day_interval': ('string', 'remove_quotes,uppercase'),
'hour_interval': 'int',
'hour_interval': ('string', 'remove_quotes,uppercase'),
'file_type': ('string', 'remove_quotes'),
}
for climo_type in self.climo_types:
Expand Down

0 comments on commit 320ebfb

Please sign in to comment.