implemented method getTimeArray in the same fashion as used in run_makeCF.py

This commit is contained in:
Sebastian Wehling-Benatelli 2014-12-08 08:45:43 +01:00
parent ce8b954a8b
commit 752811c8fd

View File

@ -92,8 +92,10 @@ class CharacteristicFunction(object):
self.t2 = t2 self.t2 = t2
def getTimeArray(self): def getTimeArray(self):
cut = self.getCut() incr = self.getIncrement()
return np.arange(cut[0], cut[1], self.getIncrement()) timeArray = np.arange(0, len(self.getCF()) / incr**-1,
incr) + self.getCut()[0]
return timeArray
def getOrder(self): def getOrder(self):
return self.order return self.order