From 9e1146a456c1adbb55559db2adf4dfdce997a487 Mon Sep 17 00:00:00 2001
From: lukas leufen <l.leufen@fz-juelich.de>
Date: Wed, 18 Mar 2020 16:52:48 +0100
Subject: [PATCH] add progress to check station

---
 src/run_modules/pre_processing.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/run_modules/pre_processing.py b/src/run_modules/pre_processing.py
index b53469ec..1e0c6b66 100644
--- a/src/run_modules/pre_processing.py
+++ b/src/run_modules/pre_processing.py
@@ -136,8 +136,9 @@ class PreProcessing(RunEnvironment):
 
         # all required arguments of the DataGenerator can be found in args, positional arguments in args and kwargs
         data_gen = DataGenerator(**args, **kwargs)
-        for station in all_stations:
+        for pos, station in enumerate(all_stations):
             t_inner.run()
+            logging.info(f"check station {station} ({pos + 1} / {len(all_stations)})")
             try:
                 data = data_gen.get_data_generator(key=station, load_local_tmp_storage=load_tmp,
                                                    save_local_tmp_storage=save_tmp)
-- 
GitLab