From 741f72fecb118ff6718d4f498c687ed3114d021f Mon Sep 17 00:00:00 2001
From: leufen1 <l.leufen@fz-juelich.de>
Date: Thu, 15 Oct 2020 13:55:36 +0200
Subject: [PATCH] another fix to be sure that parameter stations is a list

---
 mlair/run_modules/experiment_setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mlair/run_modules/experiment_setup.py b/mlair/run_modules/experiment_setup.py
index f5d7d80f..b93e23d5 100644
--- a/mlair/run_modules/experiment_setup.py
+++ b/mlair/run_modules/experiment_setup.py
@@ -279,7 +279,7 @@ class ExperimentSetup(RunEnvironment):
         path_config.check_path_and_create(self.data_store.get("logging_path"))
 
         # setup for data
-        self._set_param("stations", stations, default=DEFAULT_STATIONS)
+        self._set_param("stations", helpers.to_list(stations), default=DEFAULT_STATIONS)
         self._set_param("statistics_per_var", statistics_per_var, default=DEFAULT_VAR_ALL_DICT)
         self._set_param("variables", variables, default=list(self.data_store.get("statistics_per_var").keys()))
         self._set_param("start", start, default=DEFAULT_START)
-- 
GitLab