Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed Nov 7, 2022
1 parent 6d12cb5 commit 1b3b91d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
10 changes: 0 additions & 10 deletions metplus/wrappers/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,16 +1043,6 @@ def check_gempaktocf(self, gempaktocf_jar):
"on how to obtain the tool: parm/use_cases/met_tool_wrapper/GempakToCF/GempakToCF.py")
self.isOK = False

# def add_field_info_to_time_info(self, time_info, field_info):
# """!Add name and level values from field info to time info dict to be used in string substitution
# Args:
# @param time_info time dictionary to add items to
# @param field_info field dictionary to get values from
# """
# field_items = ['fcst_name', 'fcst_level', 'obs_name', 'obs_level']
# for field_item in field_items:
# time_info[field_item] = field_info[field_item] if field_item in field_info else ''

def set_current_field_config(self, field_info=None):
"""! Sets config variables for current fcst/obs name/level that can be
referenced by other config variables such as OUTPUT_PREFIX.
Expand Down
13 changes: 3 additions & 10 deletions metplus/wrappers/ensemble_stat_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,16 +422,6 @@ def run_at_time_all_fields(self, time_info):
fill_missing=fill_missing):
return

# # parse optional var list for FCST and/or OBS fields
var_list = sub_var_list(self.c_dict['VAR_LIST_TEMP'], time_info)
#
# # if empty var list for FCST/OBS, use None as first var,
# # else use first var in list
# if not var_list:
# first_var_info = None
# else:
# first_var_info = var_list[0]

# get point observation file if requested
if self.c_dict['OBS_POINT_INPUT_TEMPLATE']:
point_obs_path = self.find_data(time_info, data_type='OBS_POINT')
Expand All @@ -448,6 +438,9 @@ def run_at_time_all_fields(self, time_info):

self.grid_obs_files.append(grid_obs_path)

# parse optional var list for FCST and/or OBS fields
var_list = sub_var_list(self.c_dict['VAR_LIST_TEMP'], time_info)

# set field info
fcst_field = self.get_all_field_info(var_list, 'FCST')
obs_field = self.get_all_field_info(var_list, 'OBS')
Expand Down

0 comments on commit 1b3b91d

Please sign in to comment.