From 721926a1041203c2c21740c7370b36ed041088fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Le=20Guyader?= <loic.le.guyader@xfel.eu>
Date: Thu, 22 Jul 2021 10:34:51 +0200
Subject: [PATCH] Closes #17

---
 scripts/start_job_single.sh     |  4 ++++
 scripts/start_processing_all.sh | 10 ++++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/scripts/start_job_single.sh b/scripts/start_job_single.sh
index 68e97d6..d3934e9 100755
--- a/scripts/start_job_single.sh
+++ b/scripts/start_job_single.sh
@@ -9,5 +9,9 @@ RUN=$1
 MODULES=$2
 RUNTYPE=$3
 
+source /etc/profile.d/modules.sh
+module load exfel
+module load exfel_anaconda3/1.1
+
 echo processing modules $MODULES of run $RUN
 python process_data_201007_23h.py --run-number $RUN --module ${MODULES} --runtype $RUNTYPE
diff --git a/scripts/start_processing_all.sh b/scripts/start_processing_all.sh
index 681315e..f0fba41 100755
--- a/scripts/start_processing_all.sh
+++ b/scripts/start_processing_all.sh
@@ -4,10 +4,12 @@ RUN=$1
 RUNTYPE=$2
 
 if [ $RUN ] && [ $RUNTYPE ]
-    then 
+    then
         echo processing run $RUN
-#         module load exfel
-#         module load exfel_anaconda3/1.1
+        source /etc/profile.d/modules.sh
+        module load exfel
+        module load exfel_anaconda3/1.1
+        
         sbatch ./start_job_single.sh $RUN '0 1 2 3' $RUNTYPE
         sbatch ./start_job_single.sh $RUN '4 5 6 7' $RUNTYPE
         sbatch ./start_job_single.sh $RUN '8 9 10 11' $RUNTYPE
@@ -16,4 +18,4 @@ if [ $RUN ] && [ $RUNTYPE ]
         echo please specify a run number and type
         echo available runtypes:
         echo energyscan, energyscan_pumped, static, static_IR, delayscan, timescan
-fi
\ No newline at end of file
+fi
-- 
GitLab