Skip to content

Commit

Permalink
Fix pynorms
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterKolczynski-NOAA committed Oct 2, 2024
1 parent 76b3863 commit a751751
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion workflow/rocoto/gfs_forecast_only_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def get_cycledefs(self):

date2 = sdate_gfs + interval_gfs
if date2 <= edate_gfs:
strings.append(f'\t<cycledef group="gfs_seq">{date2.strftime("%Y%m%d%H%M")} {edate.strftime("%Y%m%d%H%M")} {timedelta_to_HMS(interval_gfs)}</cycledef>')
date2_gfs_str = date2_gfs.strftime("%Y%m%d%H%M")
strings.append(f'\t<cycledef group="gfs_seq">{date2_gfs_str} {edate_gfs_str} {timedelta_to_HMS(interval_gfs)}</cycledef>')

if self._base['DO_METP']:
if interval_gfs < to_timedelta('24H'):
Expand Down
4 changes: 2 additions & 2 deletions workflow/rocoto/gfs_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1836,11 +1836,11 @@ def metp(self):
deps.append(rocoto.add_dependency(dep_dict))
if self.app_config.interval_gfs < to_timedelta('24H'):
n_lookback = self.app_config.interval_gfs // to_timedelta('6H')
for lookback in range(1,n_lookback+1):
for lookback in range(1, n_lookback + 1):
deps2 = []
dep_dict = {'type': 'taskvalid', 'name': f'{self.run}arch', 'condition': 'not'}
deps2.append(rocoto.add_dependency(dep_dict))
for lookback2 in range(1,lookback):
for lookback2 in range(1, lookback):
offset = timedelta_to_HMS(-to_timedelta(f'{6*lookback2}H'))
dep_dict = {'type': 'cycleexist', 'condition': 'not', 'offset': offset}
deps2.append(rocoto.add_dependency(dep_dict))
Expand Down

0 comments on commit a751751

Please sign in to comment.