From 9e1af65af7876960d7549a11475fc9bfd01e8360 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Thu, 31 Aug 2017 00:07:38 +0200 Subject: [PATCH] [bugfix] AIC-CF was smoothed using wrong parameter aictsmooth was unused in pylot, instead the tsmoothP parameter was used two times. aictsmooth should smooth the AIC-CF during the determination of the preliminary onset. tsmoothP is used to smooth the HOS-CF during pragmatic picking. --- pylot/core/pick/autopick.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylot/core/pick/autopick.py b/pylot/core/pick/autopick.py index 5b8c4d96..6932f620 100644 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -131,6 +131,7 @@ def autopickstation(wfstream, pickparam, verbose=False, bpz1 = pickparam.get('bpz1') bpz2 = pickparam.get('bpz2') pickwinP = pickparam.get('pickwinP') + aictsmoothP = pickparam.get('aictsmooth') tsmoothP = pickparam.get('tsmoothP') ausP = pickparam.get('ausP') nfacP = pickparam.get('nfacP') @@ -323,7 +324,7 @@ def autopickstation(wfstream, pickparam, verbose=False, fig = fig_dict[key] else: fig = None - aicpick = AICPicker(aiccf, tsnrz, pickwinP, iplot, None, tsmoothP, fig=fig) + aicpick = AICPicker(aiccf, tsnrz, pickwinP, iplot, None, aictsmoothP, fig=fig) # add pstart and pstop to aic plot if fig: for ax in fig.axes: