Skip to content

Commit

Permalink
renamed GEN_VX_MASK_OBS variables to be GEN_VX_MASK_INPUT as suggeste…
Browse files Browse the repository at this point in the history
…d by @JohnHalleyGotway in PR review
  • Loading branch information
georgemccabe committed Dec 19, 2024
1 parent 4e1ee99 commit 8880360
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docs/Users_Guide/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4364,7 +4364,7 @@ METplus Configuration Glossary
GEN_VX_MASK_FILE_WINDOW_BEGIN
Used to control the lower bound of the window around the valid time to determine if a GenVxMask input file should
be used for processing. Applies to both the input file and the mask file(s).
Set :term:`GEN_VX_MASK_OBS_FILE_WINDOW_BEGIN` or
Set :term:`GEN_VX_MASK_INPUT_FILE_WINDOW_BEGIN` or
:term:`GEN_VX_MASK_MASK_FILE_WINDOW_BEGIN` to set them separately.
Overrides :term:`FILE_WINDOW_BEGIN`.
See 'Use Windows to Find Valid Files' section for more information.
Expand All @@ -4374,14 +4374,14 @@ METplus Configuration Glossary
GEN_VX_MASK_FILE_WINDOW_END
Used to control the upper bound of the window around the valid time to determine if an GenVxMask input file should
be used for processing. Applies to both the input file and the mask file(s).
Set :term:`GEN_VX_MASK_OBS_FILE_WINDOW_END` or
Set :term:`GEN_VX_MASK_INPUT_FILE_WINDOW_END` or
:term:`GEN_VX_MASK_MASK_FILE_WINDOW_END` to set them separately.
Overrides :term:`FILE_WINDOW_END`.
See 'Use Windows to Find Valid Files' section for more information.

| *Used by:* GenVxMask
GEN_VX_MASK_OBS_FILE_WINDOW_BEGIN
GEN_VX_MASK_INPUT_FILE_WINDOW_BEGIN
Used to control the lower bound of the window around the valid time to determine if a GenVxMask input file should
be used for processing. Applies to the input file only (not the mask file).
Set :term:`GEN_VX_MASK_FILE_WINDOW_BEGIN` to control both input and mask.
Expand All @@ -4390,7 +4390,7 @@ METplus Configuration Glossary

| *Used by:* GenVxMask
GEN_VX_MASK_OBS_FILE_WINDOW_END
GEN_VX_MASK_INPUT_FILE_WINDOW_END
Used to control the upper bound of the window around the valid time to determine if a GenVxMask input file should
be used for processing. Applies to the input file only (not the mask file).
Set :term:`GEN_VX_MASK_FILE_WINDOW_END` to control both input and mask.
Expand Down
4 changes: 2 additions & 2 deletions docs/Users_Guide/wrappers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1749,8 +1749,8 @@ Configuration
| :term:`GEN_VX_MASK_CUSTOM_LOOP_LIST`
| :term:`GEN_VX_MASK_FILE_WINDOW_BEGIN`
| :term:`GEN_VX_MASK_FILE_WINDOW_END`
| :term:`GEN_VX_MASK_OBS_FILE_WINDOW_BEGIN`
| :term:`GEN_VX_MASK_OBS_FILE_WINDOW_END`
| :term:`GEN_VX_MASK_INPUT_FILE_WINDOW_BEGIN`
| :term:`GEN_VX_MASK_INPUT_FILE_WINDOW_END`
| :term:`GEN_VX_MASK_MASK_FILE_WINDOW_BEGIN`
| :term:`GEN_VX_MASK_MASK_FILE_WINDOW_END`
| :term:`GEN_VX_MASK_SKIP_VALID_TIMES`
Expand Down
8 changes: 4 additions & 4 deletions metplus/wrappers/gen_vx_mask_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def create_c_dict(self):

# input and output files
self.get_input_templates(c_dict, {
'OBS': {'prefix': 'GEN_VX_MASK', 'required': True},
'INPUT': {'prefix': 'GEN_VX_MASK', 'required': True},
})

c_dict['OUTPUT_DIR'] = self.config.getdir('GEN_VX_MASK_OUTPUT_DIR', '')
Expand Down Expand Up @@ -75,8 +75,8 @@ def create_c_dict(self):
"be equal to the number of items in GEN_VX_MASK_OPTIONS")

# handle window variables [GEN_VX_MASK_]FILE_WINDOW_[BEGIN/END]
# or separately for input file (OBS) or mask file (MASK)
self.handle_file_window_variables(c_dict, data_types=['OBS', 'MASK'])
# or separately for input file (INPUT) or mask file (MASK)
self.handle_file_window_variables(c_dict, data_types=['INPUT', 'MASK'])

return c_dict

Expand Down Expand Up @@ -185,7 +185,7 @@ def find_input_files(self, time_info, temp_file):

# if temp file is not set, this is the first iteration, so read input file
if not temp_file:
input_path = self.c_dict['ALL_FILES'][0].get('OBS', [''])[0]
input_path = self.c_dict['ALL_FILES'][0].get('INPUT', [''])[0]

# return if file was not found
if not input_path:
Expand Down

0 comments on commit 8880360

Please sign in to comment.