From 010963dcd18841b97c91548d4e2470efdefdfc6c Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Wed, 28 Sep 2016 15:07:49 +0200 Subject: [PATCH] [bugfix] not all processing entries have to contain remove but at least one of them --- pylot/core/util/dataprocessing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/util/dataprocessing.py b/pylot/core/util/dataprocessing.py index a0ba4bcf..040c8ff3 100644 --- a/pylot/core/util/dataprocessing.py +++ b/pylot/core/util/dataprocessing.py @@ -215,7 +215,7 @@ def restitute_data(data, invtype, inobj, unit='VEL', force=False): seed_id = tr.get_id() # check, whether this trace has already been corrected if 'processing' in tr.stats.keys() \ - and np.all(['remove' in p for p in tr.stats.processing]) \ + and np.any(['remove' in p for p in tr.stats.processing]) \ and not force: print("Trace {0} has already been corrected!".format(seed_id)) continue