Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change order of RUNs #3335

9 changes: 5 additions & 4 deletions workflow/applications/gfs_cycled.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
self.runs.append('enkfgdas') if 'gdas' in self.ens_runs else 0
self.runs.append("gfs") if base['INTERVAL_GFS'] > 0 else 0
# 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

def _get_run_options(self, conf: Configuration) -> Dict[str, Any]:

Expand Down
Loading