Skip to content

Commit

Permalink
feature 960 GenVxMask -type (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe authored Jun 18, 2021
1 parent 68e18eb commit 319306a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions metplus/wrappers/gen_vx_mask_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def create_c_dict(self):
if not c_dict['COMMAND_OPTIONS']:
c_dict['COMMAND_OPTIONS'] = ['']

# error if -type is not set (previously optional)
if not any([item for item in c_dict['COMMAND_OPTIONS'] if '-type' in item]):
self.log_error("Must specify -type in GEN_VX_MASK_OPTIONS")

# make sure the list of mask templates is the same size as the list of
# command line options that correspond to each mask
if len(c_dict['MASK_INPUT_TEMPLATES']) != len(c_dict['COMMAND_OPTIONS']):
Expand Down
2 changes: 1 addition & 1 deletion parm/use_cases/met_tool_wrapper/GenVxMask/GenVxMask.conf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ GEN_VX_MASK_FILE_WINDOW_END = 0
# Options to add to the gen_vx_mask command line arguments. See MET User's Guide for more information
# This can be a comma separated list of options to run GenVxMask multiple times
# The length of this list must be the same length as the GEN_VX_MASK_INPUT_MASK_TEMPLATE list
GEN_VX_MASK_OPTIONS =
GEN_VX_MASK_OPTIONS = -type poly

# End of [config] section and start of [filename_templates] section
[filename_templates]
Expand Down

0 comments on commit 319306a

Please sign in to comment.