From 44050564b8c78b3856b23a1d85971cdc76a63d45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Tue, 23 Jun 2015 12:02:04 +0200 Subject: [PATCH] Debugging. --- pylot/core/pick/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index 5bd4c799..097863ae 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -61,7 +61,9 @@ def earllatepicker(X, nfac, TSNR, Pick1, iplot=None): ilup, = np.where(x[isignal] > nlevel) ildown, = np.where(x[isignal] < -nlevel) if not ilup.size and not ildown.size: - raise ValueError('earllatepicker: Signal lower than noise level') + print 'earllatepicker: Signal lower than noise level!' + print 'Skip this trace!' + return LPick, EPick, PickError il = min(np.min(ilup) if ilup.size else float('inf'), np.min(ildown) if ildown.size else float('inf')) LPick = t[isignal][il]