From d38841f36b554ab1b432f07fd63d30e40b850210 Mon Sep 17 00:00:00 2001 From: mingshichen-noaa <48537176+mingshichen-noaa@users.noreply.github.com> Date: Tue, 25 Feb 2025 15:42:38 -0500 Subject: [PATCH] Change order of RUNs (#3335) The rocoto workflow currently lists the gdas tasks first, then enkfgdas, then gfs. However, this is reversed from the logical order, where [enkf]gfs is the "early cycle" and [enkf]gdas is the "late cycle". Resolves #3306 --- workflow/applications/gfs_cycled.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/workflow/applications/gfs_cycled.py b/workflow/applications/gfs_cycled.py index 5717634175..0dd2ce44a4 100644 --- a/workflow/applications/gfs_cycled.py +++ b/workflow/applications/gfs_cycled.py @@ -23,11 +23,12 @@ def __init__(self, conf: Configuration): elif ens_run in ['gfs', 'gdas']: self.ens_runs = [ens_run] - # Now construct self.runs the desired XML order (gdas, enkfgdas, gfs, enkfgfs) - self.runs = ["gdas"] # We always have a 'gdas' run + # Now construct self.runs the desired XML order (gfs, enkfgfs, gdas, enkfgdas) + self.runs = [] + self.runs.append('gfs') if base['INTERVAL_GFS'] > 0 else 0 + self.runs.append('enkfgfs') if 'gfs' in self.ens_runs and 'gfs' in self.runs else 0 + self.runs.append('gdas') # We always have a 'gdas' run self.runs.append('enkfgdas') if 'gdas' in self.ens_runs else 0 - self.runs.append("gfs") if base['INTERVAL_GFS'] > 0 else 0 - self.runs.append('enkfgfs') if 'gfs' in self.ens_runs and "gfs" in self.runs else 0 def _get_run_options(self, conf: Configuration) -> Dict[str, Any]: