Skip to content

Commit

Permalink
fixed bug to allow string for conv_radius e.g. grid_res/20 -- previou…
Browse files Browse the repository at this point in the history
…sly only integers were allowed
  • Loading branch information
georgemccabe committed Mar 23, 2023
1 parent 7fff4a8 commit afb8b7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions metplus/wrappers/mtd_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,11 @@ def read_field_values(self, c_dict, read_type, write_type):
)

self.add_met_config(name='conv_radius',
data_type='int',
data_type='string',
env_var_name=f'METPLUS_{write_type}_CONV_RADIUS',
metplus_configs=[f'{read_type}_MTD_CONV_RADIUS',
'MTD_CONV_RADIUS'])
'MTD_CONV_RADIUS'],
extra_args={'remove_quotes': True})

self.add_met_config(name='conv_thresh',
data_type='thresh',
Expand Down

0 comments on commit afb8b7e

Please sign in to comment.