[bugfix] wasnt using processed data

This commit is contained in:
Marcel Paffrath 2018-04-20 13:51:21 +02:00
parent 4d3b300e17
commit 9b0ef55b70

View File

@ -379,7 +379,10 @@ class Data(object):
self.wfsyn = Stream() self.wfsyn = Stream()
wffnames = None wffnames = None
wffnames_syn = 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: if obspy_dmt:
for fpath in fnames: for fpath in fnames:
if fpath.endswith(wfdir): if fpath.endswith(wfdir):