##// END OF EJS Templates
Python 2to3, Voltage (all operations) working
George Yong -
r1168:889c94859eae
parent child
Show More
@@ -439,7 +439,6 class RadarControllerHeader(Header):
439 439 return 0
440 440
441 441 for ib in range(self.nBaud - 1, -1, -1):
442 log.error(ib / 32)
443 442 code[ic, ib] = temp[int(ib / 32)] % 2
444 443 temp[int(ib / 32)] = temp[int(ib / 32)] / 2
445 444
@@ -6,6 +6,8 from scipy import interpolate
6 6 from .jroproc_base import ProcessingUnit, Operation
7 7 from schainpy.model.data.jrodata import Voltage
8 8 from time import time
9 from schainpy.utils import log
10
9 11
10 12 class VoltageProc(ProcessingUnit):
11 13
@@ -1101,8 +1103,7 class SplitProfiles(Operation):
1101 1103 if shape[2] % n != 0:
1102 1104 raise ValueError("Could not split the data, n=%d has to be multiple of %d" %(n, shape[2]))
1103 1105
1104 new_shape = shape[0], shape[1]*n, shape[2]/n
1105
1106 new_shape = shape[0], shape[1]*n, int(shape[2]/n)
1106 1107 dataOut.data = numpy.reshape(dataOut.data, new_shape)
1107 1108 dataOut.flagNoData = False
1108 1109
General Comments 0
You need to be logged in to leave comments. Login now