[Bugfix] "savepath" remained the same within multiple event processing, even if set to None (set savepath automatically to event path).

station looses its attribute 'all'.
This commit is contained in:
Ludger Küperkoch 2017-08-18 14:03:25 +02:00
parent 4b01c7a28b
commit 2460d3e9d6

View File

@ -210,6 +210,9 @@ def autoPyLoT(input_dict=None, parameter=None, inputfile=None, fnames=None, even
data.setEvtData(pylot_event)
if fnames == 'None':
data.setWFData(glob.glob(os.path.join(datapath, eventpath, '*')))
station = 'all'
if savepath == None or savepath == 'None':
savepath = eventpath
# the following is necessary because within
# multiple event processing no event ID is provided
# in autopylot.in