[Bugfix] If Sweight >= 4, SNR and/or slope might be None.
This commit is contained in:
parent
a48bb60809
commit
df2d5929d3
@ -863,7 +863,7 @@ def autopickstation(wfstream, pickparam, verbose=False,
|
|||||||
if Pweight < 4:
|
if Pweight < 4:
|
||||||
ax2.plot(arhcf1.getTimeArray(),
|
ax2.plot(arhcf1.getTimeArray(),
|
||||||
arhcf1.getCF() / max(arhcf1.getCF()), 'b', label='CF1')
|
arhcf1.getCF() / max(arhcf1.getCF()), 'b', label='CF1')
|
||||||
if aicSflag == 1:
|
if aicSflag == 1 and Sweight < 4:
|
||||||
ax2.plot(arhcf2.getTimeArray(),
|
ax2.plot(arhcf2.getTimeArray(),
|
||||||
arhcf2.getCF() / max(arhcf2.getCF()), 'm', label='CF2')
|
arhcf2.getCF() / max(arhcf2.getCF()), 'm', label='CF2')
|
||||||
ax2.plot(
|
ax2.plot(
|
||||||
|
Loading…
Reference in New Issue
Block a user