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
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