[bugfix] savepath overwritten after first occurrence in for loop
This commit is contained in:
parent
4c859eae1b
commit
53aa02669c
@ -414,8 +414,10 @@ def autoPyLoT(input_dict=None, parameter=None, inputfile=None, fnames=None, even
|
|||||||
data.applyEVTData(picks)
|
data.applyEVTData(picks)
|
||||||
if savexml:
|
if savexml:
|
||||||
if savepath == 'None' or savepath == None:
|
if savepath == 'None' or savepath == None:
|
||||||
savepath = eventpath
|
saveEvtPath = eventpath
|
||||||
fnqml = '%s/PyLoT_%s' % (savepath, evID)
|
else:
|
||||||
|
saveEvtPath = savepath
|
||||||
|
fnqml = '%s/PyLoT_%s' % (saveEvtPath, evID)
|
||||||
data.exportEvent(fnqml, fnext='.xml', fcheck=['auto', 'magnitude', 'origin'])
|
data.exportEvent(fnqml, fnext='.xml', fcheck=['auto', 'magnitude', 'origin'])
|
||||||
if locflag == 1:
|
if locflag == 1:
|
||||||
# HYPO71
|
# HYPO71
|
||||||
|
Loading…
Reference in New Issue
Block a user