[bugfix] guessed that checking the same variable twice was not intended
instead of checking for mpickX's twice it was probably meant to check for lpickX's value
This commit is contained in:
parent
a9cd53886b
commit
2139674afa
@ -773,7 +773,7 @@ def autopickstation(wfstream, pickparam, verbose=False):
|
|||||||
plt.close()
|
plt.close()
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# calculate "real" onset times
|
# calculate "real" onset times
|
||||||
if mpickP is not None and epickP is not None and mpickP is not None:
|
if mpickP is not None and epickP is not None and lpickP is not None:
|
||||||
lpickP = zdat[0].stats.starttime + lpickP
|
lpickP = zdat[0].stats.starttime + lpickP
|
||||||
epickP = zdat[0].stats.starttime + epickP
|
epickP = zdat[0].stats.starttime + epickP
|
||||||
mpickP = zdat[0].stats.starttime + mpickP
|
mpickP = zdat[0].stats.starttime + mpickP
|
||||||
@ -784,7 +784,7 @@ def autopickstation(wfstream, pickparam, verbose=False):
|
|||||||
epickP = zdat[0].stats.starttime
|
epickP = zdat[0].stats.starttime
|
||||||
mpickP = zdat[0].stats.starttime
|
mpickP = zdat[0].stats.starttime
|
||||||
|
|
||||||
if mpickS is not None and epickS is not None and mpickS is not None:
|
if mpickS is not None and epickS is not None and lpickS is not None:
|
||||||
lpickS = edat[0].stats.starttime + lpickS
|
lpickS = edat[0].stats.starttime + lpickS
|
||||||
epickS = edat[0].stats.starttime + epickS
|
epickS = edat[0].stats.starttime + epickS
|
||||||
mpickS = edat[0].stats.starttime + mpickS
|
mpickS = edat[0].stats.starttime + mpickS
|
||||||
|
Loading…
Reference in New Issue
Block a user