Skip to content

Commit

Permalink
simplify lwcoss2logic in soca run_jjobs script (#1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed May 28, 2024
1 parent 3aec0d6 commit d1a2b9a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ush/soca/run_jjobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,7 @@ def _conda_envs(self, jjob):
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 load {ENVS[jjob].upper()}/{self.machine} \n")
elif self.machine == "wcoss2":
elif self.machine in ["hera", "wcoss2"]:
if jjob in ENVS:
self.f.write(f"module load {ENVS[jjob].upper()}/{self.machine} \n")

Expand Down

0 comments on commit d1a2b9a

Please sign in to comment.