From 9b93671fe3bab6d657b8e433884afda5c4f010a7 Mon Sep 17 00:00:00 2001 From: Christoph Knote Date: Wed, 27 Jun 2018 09:40:29 +0200 Subject: [PATCH] bugfix: dataInterval is float. Thanks to Joseph Coffaro! --- icartt/dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icartt/dataset.py b/icartt/dataset.py index 470a40b..3fddd3f 100644 --- a/icartt/dataset.py +++ b/icartt/dataset.py @@ -231,7 +231,7 @@ class Dataset: # value is set to 0. The Mid-point time is required when it is not at the # average of Start and Stop times. For additional information see Section # 2.5 below.). - self.dataInterval = int(self.__readline()[0]) + self.dataInterval = float(self.__readline()[0]) # line 9 - Description or name of independent variable (This is the name @@ -371,7 +371,7 @@ class Dataset: self.NVOL = 1 self.dateValid = datetime.datetime.today() self.dateRevised = datetime.datetime.today() - self.dataInterval = 0 + self.dataInterval = 0.0 self.IVAR = Variable('Time_Start', 'seconds_from_0_hours_on_valid_date', 1.0, -9999999) -- GitLab