Skip to content

Commit

Permalink
Attempt to fix vrfy job on hera
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryMartin-NOAA committed Apr 16, 2024
1 parent 9ea15df commit cb56589
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ush/soca/run_jjobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,16 @@ def _conda_envs(self, jjob):
"""
Write a section that will load the machine dependent modules
"""
if self.machine != "container":
if self.machine in ["orion", "hercules"]:
if jjob in ENVS:
# set +/-u is a workaround for an apparent conda bug
self.f.write(f"set +u \n")
self.f.write(f"conda activate {ENVS[jjob]} \n")
self.f.write(f"set -u \n")
elif self.machine == "hera":
if jjob in ENVS:
self.f.write(f"module unload GDAS \n")
self.f.write(f"module load {ENVS[jjob].upper()/{self.machine}} \n")

def precom(self, com, tmpl):
cmd = f"RUN={self.RUN} YMD={self.gPDY} HH={self.gcyc} declare_from_tmpl -xr {com}:{tmpl}"
Expand Down

0 comments on commit cb56589

Please sign in to comment.