From 92d529ebccc5958415a2e7a295a1b60ff1ebaca4 Mon Sep 17 00:00:00 2001
From: masak1112 <gongbing1112@gmail.com>
Date: Thu, 24 Feb 2022 14:37:38 +0100
Subject: [PATCH] fix the bug for virtual path in data extraction template

---
 .../JSC_scripts/data_extraction_era5_template.sh              | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/video_prediction_tools/JSC_scripts/data_extraction_era5_template.sh b/video_prediction_tools/JSC_scripts/data_extraction_era5_template.sh
index f856eb55..ec226b48 100644
--- a/video_prediction_tools/JSC_scripts/data_extraction_era5_template.sh
+++ b/video_prediction_tools/JSC_scripts/data_extraction_era5_template.sh
@@ -27,9 +27,9 @@ VIRT_ENV_NAME="my_venv"
 source ../env_setup/modules_preprocess+extract.sh
 # Activate virtual environment if needed (and possible)
 if [ -z ${VIRTUAL_ENV} ]; then
-   if [[ -f ../${VIRT_ENV_NAME}/bin/activate ]]; then
+   if [[ -f ../virtual_envs/${VIRT_ENV_NAME}/bin/activate ]]; then
       echo "Activating virtual environment..."
-      source ../${VIRT_ENV_NAME}/bin/activate
+      source ../virtual_envs/${VIRT_ENV_NAME}/bin/activate
    else 
       echo "ERROR: Requested virtual environment ${VIRT_ENV_NAME} not found..."
       exit 1
-- 
GitLab