Skip to content

Commit

Permalink
Per #1289, set lead to last lead in list when using explicit file lis…
Browse files Browse the repository at this point in the history
…t functionality so that output template can reference the forecast lead if looping by lead
  • Loading branch information
georgemccabe committed Feb 4, 2022
1 parent 96ee72f commit 379d033
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions metplus/wrappers/series_analysis_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,9 @@ def _get_fcst_and_obs_path(self, time_info, storm_id, lead_group):
# if file list are explicitly specified,
# return the file list file paths
if self.c_dict.get('EXPLICIT_FILE_LIST', False):
# set forecast lead to last lead in list to set in output filename
if leads:
time_info['lead'] = leads[-1]
if self.c_dict['USING_BOTH']:
both_path = do_string_sub(self.c_dict['BOTH_INPUT_FILE_LIST'],
**time_info)
Expand Down

0 comments on commit 379d033

Please sign in to comment.