From 7b2973982d48110d23af9e8a8d851fd0e6d98e37 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Tue, 9 Apr 2019 18:43:55 +0200 Subject: [PATCH] Replace all usages of first_motion_params with corresponding pickparams --- pylot/core/pick/autopick.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pylot/core/pick/autopick.py b/pylot/core/pick/autopick.py index 647b9468..47f52662 100644 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -916,11 +916,11 @@ class AutopickStation(object): # weight P-onset using symmetric error self.p_results.weight = get_quality_class(self.p_results.spe, self.pickparams["timeerrorsP"]) - if self.p_results.weight <= self.first_motion_params.minfmweight and self.p_results.snr >= self.first_motion_params.minFMSNR: + if self.p_results.weight <= self.pickparams["minfmweight"] and self.p_results.snr >= self.pickparams["minFMSNR"]: # if SNR is low enough, try to determine first motion of onset self.set_current_figure('fm_picker') - self.p_results.fm = fmpicker(self.zstream, z_copy, self.first_motion_params.fmpickwin, - self.p_results.mpp, self.iplot, self.current_figure, self.current_linecolor) + self.p_results.fm = fmpicker(self.zstream, z_copy, self.pickparams["fmpickwin"], self.p_results.mpp, + self.iplot, self.current_figure, self.current_linecolor) msg = "autopickstation: P-weight: {}, SNR: {}, SNR[dB]: {}, Polarity: {}" msg = msg.format(self.p_results.weight, self.p_results.snr, self.p_results.snrdb, self.p_results.fm) print(msg)