From cf30322a8f57f94ff9869080e36a1994c6d145bf Mon Sep 17 00:00:00 2001
From: mancini <mancini@astron.nl>
Date: Tue, 12 Nov 2024 12:02:04 +0100
Subject: [PATCH] Use local ssd instead of shared filesystem

---
 integration_tests/ddecal.parset | 2 +-
 integration_tests/dp3_ddecal.sh | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/integration_tests/ddecal.parset b/integration_tests/ddecal.parset
index f75a884..2a4b825 100644
--- a/integration_tests/ddecal.parset
+++ b/integration_tests/ddecal.parset
@@ -26,7 +26,7 @@ solve.solveralgorithm=directioniterative
 solve.solverlbfgs.dof=200.0 
 solve.solverlbfgs.iter=4 
 solve.solverlbfgs.minibatches=1 
-solve.sourcedb=/var/scratch/mancini/wp5/andre_test/Testset/calibration_skymodel.txt 
+solve.sourcedb=calibration_skymodel.txt 
 solve.stepsigma=0.1 
 solve.stepsize=0.02 
 solve.tolerance=0.005 
diff --git a/integration_tests/dp3_ddecal.sh b/integration_tests/dp3_ddecal.sh
index 044bd65..e7e92a6 100755
--- a/integration_tests/dp3_ddecal.sh
+++ b/integration_tests/dp3_ddecal.sh
@@ -3,9 +3,12 @@ set -e
 
 DATA_DIR=/var/scratch/mancini/wp5/andre_test/Testset
 SCRIPT_DIR=$(dirname $0)
-cp ${DATA_DIR}/*.h5parm . 
+LOCAL_DIR=/local/gitlab-runner/
+rsync -av --progress ${DATA_DIR}/*.h5parm epoch_5026988680.9055605_concatenated.ms calibration_skymodel.txt ${LOCAL_DIR}/
 
 
+cd ${LOCAL_DIR}
+
 echo EXECUTING COMMAND:
 echo DP3 ${SCRIPT_DIR}/ddecal.parset msin.datacolumn=DATA\
      msin=${DATA_DIR}/epoch_5026988680.9055605_concatenated.ms \
@@ -20,7 +23,7 @@ echo DP3 ${SCRIPT_DIR}/ddecal.parset msin.datacolumn=DATA\
      
 
 DP3  ${SCRIPT_DIR}/ddecal.parset msin.datacolumn=DATA\
-     msin=${DATA_DIR}/epoch_5026988680.9055605_concatenated.ms \
+     msin=epoch_5026988680.9055605_concatenated.ms \
      msin.nchan=50 \
      msin.ntimes=15 \
      msin.startchan=100 \
-- 
GitLab