Merge from 126:41f7e71ea296

Fri, 23 Feb 2018 08:58:50 +0200

author
Iannis <i.binietoglou@impworks.gr>
date
Fri, 23 Feb 2018 08:58:50 +0200
changeset 127
6051a9bae77b
parent 125
a8670c403823 (current diff)
parent 126
4984793c500a (diff)
child 128
168da625489b

Merge from 126:41f7e71ea296

--- a/atmospheric_lidar/scripts/licel2scc.py	Tue Feb 20 18:07:28 2018 +0200
+++ b/atmospheric_lidar/scripts/licel2scc.py	Fri Feb 23 08:58:50 2018 +0200
@@ -104,12 +104,12 @@
 def get_corrected_measurement_id(args, n):
     """ Correct the provided measurement id, in case of multiple cloud-free periods. """
     if args.measurement_id is not None:
-        order = float(args.measurement_id[-2:])
+        order = int(args.measurement_id[-2:])
         new_no = order + n
         measurement_id = args.measurement_id[:-2] + str(new_no)
         measurement_no = args.measurement_number  # The same
     else:
-        measurement_no =  str(float(args.measurement_number) + n).zfill(2)
+        measurement_no = str(int(args.measurement_number) + n).zfill(2)
         measurement_id = None
 
     return measurement_id, measurement_no

mercurial