Skip to content

Commit

Permalink
fix python issues on hera
Browse files Browse the repository at this point in the history
  • Loading branch information
chan-hoo committed Dec 29, 2024
1 parent a735ffe commit 93b6d07
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions parm/setup_wflow_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def set_machine_parm(machine):
match lowercase_machine:
case "hera":
jedi_path = "/scratch2/NAGAPE/epic/UFS_Land-DA_v2.1/jedi_v7_ic"
jedi_py_ver = "python3.11"
jedi_py_ver = "python3.10"
max_cores_per_node = 40
warmstart_dir = "/scratch2/NAGAPE/epic/UFS_Land-DA_v2.1/inputs/DATA_RESTART"
case "orion":
Expand All @@ -267,7 +267,7 @@ def set_machine_parm(machine):
warmstart_dir = "/work/noaa/epic/UFS_Land-DA_v2.1/inputs/DATA_RESTART"
case "singularity":
jedi_path = "SINGULARITY_WORKING_DIR"
jedi_py_ver = "python3.11"
jedi_py_ver = "python3.10"
max_cores_per_node = 40
warmstart_dir = "SINGULARITY_WORKING_DIR"
case _:
Expand Down
1 change: 1 addition & 0 deletions parm/templates/template.land_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ workflow:
walltime: 00:15:00
queue: batch
join: "&LOGDIR;/prep_obs&LOGFN_SUFFIX;"
memory: 128G
{%- if ( app == "ATML" and coldstart == "YES" ) %}
task_fcst_ic:
attrs:
Expand Down
1 change: 1 addition & 0 deletions sorc/test/hera_ctest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

set -eux

module purge
source ../../versions/build.ver_hera
module use ../../modulefiles
module load build_hera_intel
Expand Down
4 changes: 3 additions & 1 deletion ush/ghcn_snod2ioda.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

jedi_path = os.environ.get('JEDI_PATH')
jedi_py_ver = os.environ.get('JEDI_PY_VER')
sys.path.append(os.path.join(jedi_path, 'build/lib', jedi_py_ver))
pyioda_conv_path = os.path.join(jedi_path, 'build/lib', jedi_py_ver)
print(f'''pyioda/pyiodaconv path: {pyioda_conv_path}''')
sys.path.append(pyioda_conv_path)

import pyiodaconv.ioda_conv_engines as iconv
from collections import defaultdict, OrderedDict
Expand Down

0 comments on commit 93b6d07

Please sign in to comment.