[Bugfix] autoPyLoT was running always non-parallel due to iplot argument.

This commit is contained in:
Ludger Küperkoch 2017-08-09 13:28:00 +02:00
parent 87b617b924
commit 1b16c13525

View File

@ -28,6 +28,14 @@ def autopickevent(data, param, iplot=0, fig_dict=None, ncores=0, metadata=None,
stations = [] stations = []
all_onsets = {} all_onsets = {}
input_tuples = [] input_tuples = []
try:
iplot = int(iplot)
except:
if iplot == True or iplot == 'True':
iplot = 2
else:
iplot = 0
# get some parameters for quality control from # get some parameters for quality control from
# parameter input file (usually autoPyLoT.in). # parameter input file (usually autoPyLoT.in).
@ -44,7 +52,7 @@ def autopickevent(data, param, iplot=0, fig_dict=None, ncores=0, metadata=None,
for station in stations: for station in stations:
topick = data.select(station=station) topick = data.select(station=station)
if not iplot: if iplot == None or iplot == 'None' or iplot == 0:
input_tuples.append((topick, param, apverbose, metadata, origin)) input_tuples.append((topick, param, apverbose, metadata, origin))
if iplot > 0: if iplot > 0:
all_onsets[station] = autopickstation(topick, param, verbose=apverbose, all_onsets[station] = autopickstation(topick, param, verbose=apverbose,