From 752811c8fd855b777a031b5901af82e08e598f31 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Mon, 8 Dec 2014 08:45:43 +0100 Subject: [PATCH] implemented method getTimeArray in the same fashion as used in run_makeCF.py --- pylot/core/pick/CharFuns.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pylot/core/pick/CharFuns.py b/pylot/core/pick/CharFuns.py index f469e67b..2ff0ec01 100644 --- a/pylot/core/pick/CharFuns.py +++ b/pylot/core/pick/CharFuns.py @@ -92,8 +92,10 @@ class CharacteristicFunction(object): self.t2 = t2 def getTimeArray(self): - cut = self.getCut() - return np.arange(cut[0], cut[1], self.getIncrement()) + incr = self.getIncrement() + timeArray = np.arange(0, len(self.getCF()) / incr**-1, + incr) + self.getCut()[0] + return timeArray def getOrder(self): return self.order