diff --git a/video_prediction_tools/no_HPC_scripts/data_extraction_era5_template.sh b/video_prediction_tools/no_HPC_scripts/data_extraction_era5_template.sh index ed42d5520c538fd24d3e1f63ae91141284bea781..4e3c4d3a96f4ffbe1f0c238dc650eba7760151ff 100644 --- a/video_prediction_tools/no_HPC_scripts/data_extraction_era5_template.sh +++ b/video_prediction_tools/no_HPC_scripts/data_extraction_era5_template.sh @@ -1,6 +1,11 @@ #!/bin/bash -x -#User's input : your virtual enviornment name +######### Template identifier (don't remove) ######### +echo "Do not run the template scripts" +exit 99 +######### Template identifier (don't remove) ######### + +# Name of virtual environment VIRT_ENV_NAME=venv_test echo "Activating virtual environment..." diff --git a/video_prediction_tools/no_HPC_scripts/preprocess_data_era5_step1_template.sh b/video_prediction_tools/no_HPC_scripts/preprocess_data_era5_step1_template.sh index fec9b3812a00e2e2f182cddef1bcafcd0296e16c..8519569a32d6a86c98363c85eb707ffa75e4960f 100644 --- a/video_prediction_tools/no_HPC_scripts/preprocess_data_era5_step1_template.sh +++ b/video_prediction_tools/no_HPC_scripts/preprocess_data_era5_step1_template.sh @@ -1,10 +1,22 @@ #!/bin/bash -x -#User's input : your virtual enviornment name +######### Template identifier (don't remove) ######### +echo "Do not run the template scripts" +exit 99 +######### Template identifier (don't remove) ######### + +# Name of virtual environment VIRT_ENV_NAME=venv_test -echo "Activating virtual environment..." -source ../virtual_envs/${VIRT_ENV_NAME}/bin/activate +if [ -z ${VIRTUAL_ENV} ]; then + if [[ -f ../virtual_envs/${VIRT_ENV_NAME}/bin/activate ]]; then + echo "Activating virtual environment..." + source ../virtual_envs/${VIRT_ENV_NAME}/bin/activate + else + echo "ERROR: Requested virtual environment ${VIRT_ENV_NAME} not found..." + exit 1 + fi +fi #select years and variables for dataset and define target domain years=( "2007" ) diff --git a/video_prediction_tools/no_HPC_scripts/preprocess_data_era5_step2_template.sh b/video_prediction_tools/no_HPC_scripts/preprocess_data_era5_step2_template.sh index 36fd18d1b0938cf85a348e8dd3c0b6f40b55909f..441924e7238cf87edbcca4b5a757f60358c3ecc4 100644 --- a/video_prediction_tools/no_HPC_scripts/preprocess_data_era5_step2_template.sh +++ b/video_prediction_tools/no_HPC_scripts/preprocess_data_era5_step2_template.sh @@ -1,6 +1,14 @@ #!/bin/bash -x -#User's input : your virtual enviornment name +######### Template identifier (don't remove) ######### +echo "Do not run the template scripts" +exit 99 +######### Template identifier (don't remove) ######### + +# auxiliary variables +WORK_DIR="$(pwd)" +BASE_DIR=$(dirname "$WORK_DIR") +# Name of virtual environment VIRT_ENV_NAME=venv_test # declare directory-variables which will be modified by config_runscript.py diff --git a/video_prediction_tools/no_HPC_scripts/train_model_era5_template.sh b/video_prediction_tools/no_HPC_scripts/train_model_era5_template.sh index 6a2ed2b5b5ab0b5c7e4d8a7f1b058c0b72c3a2c4..2d0c6d34125e5ea1734683ca5d91837494f61ab6 100644 --- a/video_prediction_tools/no_HPC_scripts/train_model_era5_template.sh +++ b/video_prediction_tools/no_HPC_scripts/train_model_era5_template.sh @@ -1,7 +1,15 @@ #!/bin/bash -x -#your virtual enviornment name -VIRT_ENV_NAME=venv_test +######### Template identifier (don't remove) ######### +echo "Do not run the template scripts" +exit 99 +######### Template identifier (don't remove) ######### + +# auxiliary variables +WORK_DIR="$(pwd)" +BASE_DIR=$(dirname "$WORK_DIR") +# Name of virtual environment +VIRT_ENV_NAME="my_venv" # declare directory-variables which will be modified by generate_runscript.py source_dir=/my/path/to/tfrecords/files diff --git a/video_prediction_tools/no_HPC_scripts/visualize_postprocess_era5_template.sh b/video_prediction_tools/no_HPC_scripts/visualize_postprocess_era5_template.sh index b7748ab0c7843f952311e80d94c8d4d913c57184..24ecbb6fe043f2b1930348d6728f8c9d23c8f831 100644 --- a/video_prediction_tools/no_HPC_scripts/visualize_postprocess_era5_template.sh +++ b/video_prediction_tools/no_HPC_scripts/visualize_postprocess_era5_template.sh @@ -1,5 +1,15 @@ #!/bin/bash -x +######### Template identifier (don't remove) ######### +echo "Do not run the template scripts" +exit 99 +######### Template identifier (don't remove) ######### + +# auxiliary variables +WORK_DIR="$(pwd)" +BASE_DIR=$(dirname "$WORK_DIR") +#your virtual enviornment name + #User's input : your virtual enviornment name VIRT_ENV_NAME=venv_test # !!! ADAPAT DEPENDING ON USAGE OF CONTAINER !!!