[bugfix] not all processing entries have to contain remove but at least one of them

This commit is contained in:
Sebastian Wehling-Benatelli 2016-09-28 15:07:49 +02:00
parent d68a1bcf0e
commit 010963dcd1

View File

@ -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