Skip to content

Commit

Permalink
Bug fix in call to do_string_sub() (which is part of METplus code) to…
Browse files Browse the repository at this point in the history
… convert the lead time in seconds from a float to an integer since do_string_sub() does not know how to deal with a a lead value that is a float.
  • Loading branch information
gsketefian committed Nov 25, 2024
1 parent 88351c8 commit 44df87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ush/get_obs.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def get_obs(config, obtype, yyyymmdd_task):
# Call METplus subroutine to evaluate the template for the full path to
# the file containing METplus timestrings at the current time.
fn = sts.do_string_sub(tmpl=fp_proc_tmpl,init=yyyymmdd_task,valid=yyyymmddhh,
lead=leadtime.total_seconds())
lead=int(leadtime.total_seconds()))
all_fp_proc_dict[fg].append(fn)

# Check whether any obs files already exist on disk in their processed
Expand Down

0 comments on commit 44df87c

Please sign in to comment.