##// 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 return 0
439 return 0
440
440
441 for ib in range(self.nBaud - 1, -1, -1):
441 for ib in range(self.nBaud - 1, -1, -1):
442 log.error(ib / 32)
443 code[ic, ib] = temp[int(ib / 32)] % 2
442 code[ic, ib] = temp[int(ib / 32)] % 2
444 temp[int(ib / 32)] = temp[int(ib / 32)] / 2
443 temp[int(ib / 32)] = temp[int(ib / 32)] / 2
445
444
@@ -6,6 +6,8 from scipy import interpolate
6 from .jroproc_base import ProcessingUnit, Operation
6 from .jroproc_base import ProcessingUnit, Operation
7 from schainpy.model.data.jrodata import Voltage
7 from schainpy.model.data.jrodata import Voltage
8 from time import time
8 from time import time
9 from schainpy.utils import log
10
9
11
10 class VoltageProc(ProcessingUnit):
12 class VoltageProc(ProcessingUnit):
11
13
@@ -1101,8 +1103,7 class SplitProfiles(Operation):
1101 if shape[2] % n != 0:
1103 if shape[2] % n != 0:
1102 raise ValueError("Could not split the data, n=%d has to be multiple of %d" %(n, shape[2]))
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
1106 new_shape = shape[0], shape[1]*n, int(shape[2]/n)
1105
1106 dataOut.data = numpy.reshape(dataOut.data, new_shape)
1107 dataOut.data = numpy.reshape(dataOut.data, new_shape)
1107 dataOut.flagNoData = False
1108 dataOut.flagNoData = False
1108
1109
General Comments 0
You need to be logged in to leave comments. Login now