From 71973a5348ed9dd8618c9030a69626c027eccf66 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Sat, 26 Aug 2017 12:14:44 +0200 Subject: [PATCH] [bugfix] Earllate-Picker would use wrong timearray for plotting signal-timearray gets doubled if not enough zero crossings are found to calculate valid signal period. Plotting would then use the old "single" timearray. --- pylot/core/pick/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index def6f0db..3a5e2892 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -135,7 +135,7 @@ def earllatepicker(X, nfac, TSNR, Pick1, iplot=0, verbosity=1, fig=None): ax.axvspan(t[inoise[0]], t[inoise[-1]], color='y', alpha=0.2, lw=0, label='Noise Window') ax.axvspan(t[isignal[0]], t[isignal[-1]], color='b', alpha=0.2, lw=0, label='Signal Window') ax.plot([t[0], t[int(len(t)) - 1]], [nlevel, nlevel], '--k', label='Noise Level') - ax.plot(t[isignal[zc]], np.zeros(len(zc)), '*g', + ax.plot(t[pis[zc]], np.zeros(len(zc)), '*g', markersize=14, label='Zero Crossings') ax.plot([t[0], t[int(len(t)) - 1]], [-nlevel, -nlevel], '--k') ax.plot([Pick1, Pick1], [max(x), -max(x)], 'b', linewidth=2, label='mpp')