Skip to content
Snippets Groups Projects
Commit a7c80cea authored by Bing Gong's avatar Bing Gong
Browse files

Update swtich the load modules and activate environment in Data extraction template

parent d8387404
Branches
No related tags found
No related merge requests found
Pipeline #93267 failed
...@@ -23,8 +23,7 @@ jutil env activate -p deepacf ...@@ -23,8 +23,7 @@ jutil env activate -p deepacf
# Name of virtual environment # Name of virtual environment
VIRT_ENV_NAME="my_venv" VIRT_ENV_NAME="my_venv"
# Loading mouldes
source ../env_setup/modules_preprocess+extract.sh
# Activate virtual environment if needed (and possible) # Activate virtual environment if needed (and possible)
if [ -z ${VIRTUAL_ENV} ]; then if [ -z ${VIRTUAL_ENV} ]; then
if [[ -f ../virtual_envs/${VIRT_ENV_NAME}/bin/activate ]]; then if [[ -f ../virtual_envs/${VIRT_ENV_NAME}/bin/activate ]]; then
...@@ -35,6 +34,8 @@ if [ -z ${VIRTUAL_ENV} ]; then ...@@ -35,6 +34,8 @@ if [ -z ${VIRTUAL_ENV} ]; then
exit 1 exit 1
fi fi
fi fi
# Loading mouldes
source ../env_setup/modules_preprocess+extract.sh
# Declare path-variables (dest_dir will be set and configured automatically via generate_runscript.py) # Declare path-variables (dest_dir will be set and configured automatically via generate_runscript.py)
source_dir=/my/path/to/era5 source_dir=/my/path/to/era5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment