From 1d8763384f4660e10ed0cc2bd7c9008026221bdb Mon Sep 17 00:00:00 2001
From: Felix Kleinert <f.kleinert@fz-juelich.de>
Date: Tue, 26 May 2020 14:54:29 +0200
Subject: [PATCH] fix data_path for external users

---
 src/run_modules/experiment_setup.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/run_modules/experiment_setup.py b/src/run_modules/experiment_setup.py
index b04c0e2a..7450ff40 100644
--- a/src/run_modules/experiment_setup.py
+++ b/src/run_modules/experiment_setup.py
@@ -50,7 +50,10 @@ class ExperimentSetup(RunEnvironment):
         super().__init__()
 
         # experiment setup
-        self._set_param("data_path", data_path, default=helpers.prepare_host(sampling=sampling))
+        if data_path is None:
+            self._set_param("data_path", data_path, default=helpers.prepare_host(sampling=sampling))
+        else:
+            self._set_param("data_path", data_path)
         self._set_param("hostname", helpers.get_host())
         # self._set_param("hostname", "jwc0123")
         self._set_param("hpc_hosts", hpc_hosts, default=DEFAULT_HPC_HOST_LIST + DEFAULT_HPC_LOGIN_LIST)
-- 
GitLab