From 3db607d147d2d43b12cd9b055a04b79c335f6b5f Mon Sep 17 00:00:00 2001 From: leufen1 <l.leufen@fz-juelich.de> Date: Mon, 19 Jun 2023 11:59:48 +0200 Subject: [PATCH] log progress in serial approach too --- mlair/run_modules/pre_processing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mlair/run_modules/pre_processing.py b/mlair/run_modules/pre_processing.py index 5710b63..d56d064 100644 --- a/mlair/run_modules/pre_processing.py +++ b/mlair/run_modules/pre_processing.py @@ -295,11 +295,12 @@ class PreProcessing(RunEnvironment): else: # serial solution logging.info("use serial validate station approach") kwargs.update({"return_strategy": "result"}) - for station in set_stations: + for i, station in enumerate(set_stations): dh, s = f_proc(data_handler, station, set_name, store_processed_data, **kwargs) if dh is not None: collection.add(dh) valid_stations.append(s) + logging.info(f"...finished: {s} ({int((i + 1.) / len(set_stations) * 100)}%)") logging.info(f"run for {t_outer} to check {len(set_stations)} station(s). Found {len(collection)}/" f"{len(set_stations)} valid stations ({set_name}).") -- GitLab