Skip to content

Commit

Permalink
add g-w pygw to PYTHONPATH in run_jedi_exe scripts (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Apr 22, 2023
1 parent dc5db4a commit 1e7d993
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/atm/run_jedi_exe_3denvar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ elif [ "$machine" = "orion" ]; then
gdasfix="/work2/noaa/da/cmartin/GDASApp/fix"
fi

# Setup python path for workflow utilities and tasks
export HOMEgfs=$srcdir/../../ # TODO: HOMEgfs had to be hard-coded in config
echo $HOMEgfs
pygwPATH="${HOMEgfs}/ush/python:${HOMEgfs}/ush/python/pygw/src"
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${pygwPATH}"
export PYTHONPATH

# Create test run directory
mkdir -p ${bindir}/test/atm/global-workflow/testrun/gdas_single_test_3denvar
cd ${bindir}/test/atm/global-workflow/testrun/gdas_single_test_3denvar
Expand Down
7 changes: 7 additions & 0 deletions test/atm/run_jedi_exe_3dhofx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ elif [ "$machine" = "orion" ]; then
gdasfix="/work2/noaa/da/cmartin/GDASApp/fix"
fi

# Setup python path for workflow utilities and tasks
export HOMEgfs=$srcdir/../../ # TODO: HOMEgfs had to be hard-coded in config
echo $HOMEgfs
pygwPATH="${HOMEgfs}/ush/python:${HOMEgfs}/ush/python/pygw/src"
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${pygwPATH}"
export PYTHONPATH

# Create test run directory
mkdir -p ${bindir}/test/atm/global-workflow/testrun/gdas_single_test_hofx3d
cd ${bindir}/test/atm/global-workflow/testrun/gdas_single_test_hofx3d
Expand Down
7 changes: 7 additions & 0 deletions test/atm/run_jedi_exe_3dvar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ elif [ "$machine" = "orion" ]; then
gdasfix="/work2/noaa/da/cmartin/GDASApp/fix"
fi

# Setup python path for workflow utilities and tasks
export HOMEgfs=$srcdir/../../ # TODO: HOMEgfs had to be hard-coded in config
echo $HOMEgfs
pygwPATH="${HOMEgfs}/ush/python:${HOMEgfs}/ush/python/pygw/src"
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${pygwPATH}"
export PYTHONPATH

# Create test run directory
mkdir -p ${bindir}/test/atm/global-workflow/testrun/gdas_single_test_3dvar
cd ${bindir}/test/atm/global-workflow/testrun/gdas_single_test_3dvar
Expand Down
7 changes: 7 additions & 0 deletions test/atm/run_jedi_exe_letkf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ elif [ "$machine" = "orion" ]; then
gdasfix="/work2/noaa/da/cmartin/GDASApp/fix"
fi

# Setup python path for workflow utilities and tasks
export HOMEgfs=$srcdir/../../ # TODO: HOMEgfs had to be hard-coded in config
echo $HOMEgfs
pygwPATH="${HOMEgfs}/ush/python:${HOMEgfs}/ush/python/pygw/src"
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${pygwPATH}"
export PYTHONPATH

# Create test run directory
mkdir -p ${bindir}/test/atm/global-workflow/testrun/gdas_single_test_letkf
cd ${bindir}/test/atm/global-workflow/testrun/gdas_single_test_letkf
Expand Down

0 comments on commit 1e7d993

Please sign in to comment.