diff --git a/pylot/core/io/data.py b/pylot/core/io/data.py index 50e7a961..77b24a3d 100644 --- a/pylot/core/io/data.py +++ b/pylot/core/io/data.py @@ -379,7 +379,10 @@ class Data(object): self.wfsyn = Stream() wffnames = None wffnames_syn = None - wfdir = 'processed' if 'processed' in [fname.split('/')[-1] for fname in fnames] else 'raw' + wfdir = 'raw' + for fname in fnames: + if fname.endswith('processed'): + wfdir = 'processed' if obspy_dmt: for fpath in fnames: if fpath.endswith(wfdir):