Skip to content
Snippets Groups Projects

Resolve "model folder in experiment"

Merged Ghost User requested to merge lukas_issue130_refac_exp-model-dir into develop
6 files
+ 38
21
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -273,6 +273,10 @@ class ExperimentSetup(RunEnvironment):
@@ -273,6 +273,10 @@ class ExperimentSetup(RunEnvironment):
self._set_param("experiment_path", exp_path)
self._set_param("experiment_path", exp_path)
path_config.check_path_and_create(self.data_store.get("experiment_path"))
path_config.check_path_and_create(self.data_store.get("experiment_path"))
 
# set model path
 
self._set_param("model_path", None, os.path.join(exp_path, "model"))
 
path_config.check_path_and_create(self.data_store.get("model_path"))
 
# set plot path
# set plot path
default_plot_path = os.path.join(exp_path, "plots")
default_plot_path = os.path.join(exp_path, "plots")
self._set_param("plot_path", plot_path, default=default_plot_path)
self._set_param("plot_path", plot_path, default=default_plot_path)
@@ -283,6 +287,10 @@ class ExperimentSetup(RunEnvironment):
@@ -283,6 +287,10 @@ class ExperimentSetup(RunEnvironment):
self._set_param("forecast_path", forecast_path, default_forecast_path)
self._set_param("forecast_path", forecast_path, default_forecast_path)
path_config.check_path_and_create(self.data_store.get("forecast_path"))
path_config.check_path_and_create(self.data_store.get("forecast_path"))
 
# set logging path
 
self._set_param("logging_path", None, os.path.join(exp_path, "logging"))
 
path_config.check_path_and_create(self.data_store.get("logging_path"))
 
# setup for data
# setup for data
self._set_param("stations", stations, default=DEFAULT_STATIONS)
self._set_param("stations", stations, default=DEFAULT_STATIONS)
self._set_param("network", network, default="AIRBASE")
self._set_param("network", network, default="AIRBASE")
Loading