From 95193722474ac184754a8ac39ea55a73dfc1c2a0 Mon Sep 17 00:00:00 2001 From: Sebastianw Wehling-Benatelli Date: Mon, 11 Apr 2016 13:57:59 +0200 Subject: [PATCH] [bugfix] autopick accidently interchanged latest and earliest possible pick --- pylot/core/pick/autopick.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pylot/core/pick/autopick.py b/pylot/core/pick/autopick.py index 57eb21e5..da244cd2 100755 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -305,7 +305,7 @@ def autopickstation(wfstream, pickparam, verbose=False): if mpickP is not None: # quality assessment # get earliest/latest possible pick and symmetrized uncertainty - [lpickP, epickP, Perror] = earllatepicker(z_copy, nfacP, tsnrz, + [epickP, lpickP, Perror] = earllatepicker(z_copy, nfacP, tsnrz, mpickP, iplot) # get SNR @@ -491,11 +491,11 @@ def autopickstation(wfstream, pickparam, verbose=False): # quality assessment # get earliest/latest possible pick and symmetrized uncertainty h_copy[0].data = trH1_filt.data - [lpickS1, epickS1, Serror1] = earllatepicker(h_copy, nfacS, + [epickS1, lpickS1, Serror1] = earllatepicker(h_copy, nfacS, tsnrh, mpickS, iplot) h_copy[0].data = trH2_filt.data - [lpickS2, epickS2, Serror2] = earllatepicker(h_copy, nfacS, + [epickS2, lpickS2, Serror2] = earllatepicker(h_copy, nfacS, tsnrh, mpickS, iplot) if epickS1 is not None and epickS2 is not None: @@ -511,7 +511,7 @@ def autopickstation(wfstream, pickparam, verbose=False): elif epickS1 is not None and epickS2 is not None: ipick = np.argmin([epickS1, epickS2]) elif algoS == 'AR3': - [lpickS3, epickS3, Serror3] = earllatepicker(h_copy, + [epickS3, lpickS3, Serror3] = earllatepicker(h_copy, nfacS, tsnrh, mpickS,