Skip to content
Snippets Groups Projects
Commit 3725c58e authored by lukas leufen's avatar lukas leufen
Browse files

Merge branch 'lukas_issue069_bug_check-valid-stations' into 'master'

Resolve "BUG in check valid stations"

Closes #69

See merge request toar/machinelearningtools!62
parents e1bbf647 d7f4ebb0
No related branches found
No related tags found
2 merge requests!65apply bugfix to dev branch too,!62Resolve "BUG in check valid stations"
Pipeline #31543 passed
......@@ -137,9 +137,10 @@ class PreProcessing(RunEnvironment):
for station in all_stations:
t_inner.run()
try:
# (history, label) = data_gen[station]
data = data_gen.get_data_generator(key=station, load_local_tmp_storage=load_tmp,
save_local_tmp_storage=save_tmp)
if data.history is None:
raise AttributeError
valid_stations.append(station)
logging.debug(f'{station}: history_shape = {data.history.transpose("datetime", "window", "Stations", "variables").shape}')
logging.debug(f"{station}: loading time = {t_inner}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment