From cfca52e576025c5cd5dfeb9f4468304eaccd555d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Fri, 4 Sep 2015 15:28:37 +0200 Subject: [PATCH] Debuged slope determination [counts/s] within AICPicker. --- pylot/core/pick/Picker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylot/core/pick/Picker.py b/pylot/core/pick/Picker.py index d8a224e6..61eade5e 100644 --- a/pylot/core/pick/Picker.py +++ b/pylot/core/pick/Picker.py @@ -18,6 +18,7 @@ calculated after Diehl & Kissling (2009). :author: MAGS2 EP3 working group / Ludger Kueperkoch """ + import numpy as np import matplotlib.pyplot as plt from pylot.core.pick.utils import getnoisewin, getsignalwin @@ -245,8 +246,7 @@ class AICPicker(AutoPicking): if datafit[0] >= datafit[len(datafit) - 1]: print 'AICPicker: Negative slope, bad onset skipped!' return - - self.slope = 1 / tslope * datafit[len(dataslope) - 1] - datafit[0] + self.slope = 1 / tslope * (datafit[len(dataslope) - 1] - datafit[0]) else: self.SNR = None