@@ -113,7 +113,7 class DigitalRFReader(ProcessingUnit): | |||||
113 | self.dataOut.nProfiles = int(nProfiles) |
|
113 | self.dataOut.nProfiles = int(nProfiles) | |
114 |
|
114 | |||
115 | self.dataOut.heightList = self.__firstHeigth + \ |
|
115 | self.dataOut.heightList = self.__firstHeigth + \ | |
116 | numpy.arange(self.__nSamples, dtype=numpy.float) * \ |
|
116 | numpy.arange(self.__nSamples, dtype=numpy.float_) * \ | |
117 | self.__deltaHeigth |
|
117 | self.__deltaHeigth | |
118 |
|
118 | |||
119 | #self.dataOut.channelList = list(range(self.__num_subchannels)) |
|
119 | #self.dataOut.channelList = list(range(self.__num_subchannels)) | |
@@ -242,7 +242,7 class DigitalRFReader(ProcessingUnit): | |||||
242 | nCode=1, |
|
242 | nCode=1, | |
243 | nBaud=1, |
|
243 | nBaud=1, | |
244 | flagDecodeData=False, |
|
244 | flagDecodeData=False, | |
245 |
code=numpy.ones((1, 1), dtype= |
|
245 | code=numpy.ones((1, 1), dtype=int), | |
246 | getByBlock=0, |
|
246 | getByBlock=0, | |
247 | nProfileBlocks=1, |
|
247 | nProfileBlocks=1, | |
248 | **kwargs): |
|
248 | **kwargs): | |
@@ -433,7 +433,7 class DigitalRFReader(ProcessingUnit): | |||||
433 | #self.__data_buffer = numpy.zeros( |
|
433 | #self.__data_buffer = numpy.zeros( | |
434 | # (self.__num_subchannels, self.__samples_to_read), dtype=numpy.complex) |
|
434 | # (self.__num_subchannels, self.__samples_to_read), dtype=numpy.complex) | |
435 | print("samplestoread",self.__samples_to_read) |
|
435 | print("samplestoread",self.__samples_to_read) | |
436 | self.__data_buffer = numpy.zeros((int(len(channelList)), self.__samples_to_read), dtype=numpy.complex) |
|
436 | self.__data_buffer = numpy.zeros((int(len(channelList)), self.__samples_to_read), dtype=numpy.complex_) | |
437 |
|
437 | |||
438 |
|
438 | |||
439 | self.__setFileHeader() |
|
439 | self.__setFileHeader() | |
@@ -554,7 +554,7 class DigitalRFReader(ProcessingUnit): | |||||
554 | bot = 0 |
|
554 | bot = 0 | |
555 | while(self.__flagDiscontinuousBlock): |
|
555 | while(self.__flagDiscontinuousBlock): | |
556 | bot +=1 |
|
556 | bot +=1 | |
557 |
self.__thisUnixSample += self.__sample_ |
|
557 | self.__thisUnixSample += self.__samples_to_read | |
558 | try: |
|
558 | try: | |
559 | result = result = self.digitalReadObj.read_vector_c81d(self.__thisUnixSample,self.__samples_to_read,thisChannelName, sub_channel=indexSubchannel) |
|
559 | result = result = self.digitalReadObj.read_vector_c81d(self.__thisUnixSample,self.__samples_to_read,thisChannelName, sub_channel=indexSubchannel) | |
560 | self.__flagDiscontinuousBlock=False |
|
560 | self.__flagDiscontinuousBlock=False |
General Comments 0
You need to be logged in to leave comments.
Login now