From 33e34ef1943c8c450ea7c904074d96f1967a65ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 31 May 2017 12:21:40 +0200 Subject: [PATCH] Removed former changes, made it worse! --- pylot/core/pick/picker.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pylot/core/pick/picker.py b/pylot/core/pick/picker.py index b268c7bb..46ccac5d 100644 --- a/pylot/core/pick/picker.py +++ b/pylot/core/pick/picker.py @@ -242,13 +242,6 @@ class AICPicker(AutoPicker): return islope = islope[0][0:imax] - if len(islope) < 2: - # get local maximum of AIC function to calculate properly slope - islope = np.where((self.Tcf <= min([self.Pick + tslope, len(self.Data[0].data)])) \ - & (self.Tcf >= self.Pick)) - imax = np.argmax(aicsmooth[islope]) - islope = islope[0][0:imax] - dataslope = self.Data[0].data[islope] # calculate slope as polynomal fit of order 1 xslope = np.arange(0, len(dataslope), 1)