From 4bb75d17fb4ea0e13c2ec819930fdf737d6266a8 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Mon, 8 Dec 2014 08:53:58 +0100 Subject: [PATCH] remove variables which are attributes of classes --- pylot/core/pick/Picker.py | 6 ------ pylot/core/pick/run_makeCF.py | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/pylot/core/pick/Picker.py b/pylot/core/pick/Picker.py index e8d980bc..4b76338f 100644 --- a/pylot/core/pick/Picker.py +++ b/pylot/core/pick/Picker.py @@ -28,12 +28,6 @@ class AutoPicking(object): :param: cf, characteristic function, on which the picking algorithm is applied :type: `~pylot.core.pick.CharFuns.CharacteristicFunction` object - :param: Tcf, corresponding time array - :type: array - - :param: dt, sampling interval [s] - :type: float - :param: Tslope, length of time window after pick used to determine slope for quality estimation [s] :type: float diff --git a/pylot/core/pick/run_makeCF.py b/pylot/core/pick/run_makeCF.py index 8d6d6aab..16cfbd93 100755 --- a/pylot/core/pick/run_makeCF.py +++ b/pylot/core/pick/run_makeCF.py @@ -58,8 +58,8 @@ def run_makeCF(project, database, event, iplot, station=None): ############################################################## #calculate HOS-CF using subclass HOScf of class CharacteristicFunction hoscf = HOScf(st_copy, cuttimes, t2, p) #instance of HOScf - #get corresponding time array - thoscf = np.arange(0, len(hoscf.getCF()) / tr_filt.stats.sampling_rate, tr_filt.stats.delta) + cuttimes[0] + #get corresponding time array -> unnecessary because implemented in CharacteristicFunction + # thoscf = np.arange(0, len(hoscf.getCF()) / tr_filt.stats.sampling_rate, tr_filt.stats.delta) + cuttimes[0] ############################################################## #get onset time from HOS-CF using class Picker #hospick = PragPicker(hoscf.getCF(), thoscf, 2, 70, [1, 0.5, 0.2], 2, 0.001, 0.2)