Commit 46a48ee9 authored by lukas leufen's avatar lukas leufen

abort experiment if no valid station was found

parent b96f652f
Pipeline #43671 passed with stages
in 6 minutes and 8 seconds
......@@ -57,6 +57,8 @@ class PreProcessing(RunEnvironment):
stations = self.data_store.get("stations")
data_preparation = self.data_store.get("data_preparation")
_, valid_stations = self.validate_station(data_preparation, stations, "preprocessing", overwrite_local_data=True)
if len(valid_stations) == 0:
raise ValueError("Couldn't find any valid data according to given parameters. Abort experiment run.")
self.data_store.set("stations", valid_stations)
self.split_train_val_test()
self.report_pre_processing()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment