@@ -157,6 +157,7 class SpectraProc(ProcessingUnit): | |||||
157 | nProfiles, |
|
157 | nProfiles, | |
158 | self.dataIn.nHeights), |
|
158 | self.dataIn.nHeights), | |
159 | dtype='complex') |
|
159 | dtype='complex') | |
|
160 | print("W",self.buffer.shape) | |||
160 |
|
161 | |||
161 | if self.dataIn.flagDataAsBlock: |
|
162 | if self.dataIn.flagDataAsBlock: | |
162 | nVoltProfiles = self.dataIn.data.shape[1] |
|
163 | nVoltProfiles = self.dataIn.data.shape[1] | |
@@ -193,6 +194,7 class SpectraProc(ProcessingUnit): | |||||
193 | self.dataIn.type, self.dataIn.data.shape[1], nProfiles)) |
|
194 | self.dataIn.type, self.dataIn.data.shape[1], nProfiles)) | |
194 | self.dataOut.flagNoData = True |
|
195 | self.dataOut.flagNoData = True | |
195 | else: |
|
196 | else: | |
|
197 | print(self.profIndex,self.dataIn.data.copy().shape) | |||
196 | self.buffer[:, self.profIndex, :] = self.dataIn.data.copy() |
|
198 | self.buffer[:, self.profIndex, :] = self.dataIn.data.copy() | |
197 | self.profIndex += 1 |
|
199 | self.profIndex += 1 | |
198 |
|
200 | |||
@@ -208,8 +210,8 class SpectraProc(ProcessingUnit): | |||||
208 | self.__getFft() |
|
210 | self.__getFft() | |
209 | self.dataOut.flagNoData = False |
|
211 | self.dataOut.flagNoData = False | |
210 | self.firstdatatime = None |
|
212 | self.firstdatatime = None | |
211 | if not self.reader.bypass: |
|
213 | #if not self.reader.bypass: | |
212 |
|
|
214 | self.profIndex = 0 | |
213 | else: |
|
215 | else: | |
214 | raise ValueError("The type of input object '%s' is not valid".format( |
|
216 | raise ValueError("The type of input object '%s' is not valid".format( | |
215 | self.dataIn.type)) |
|
217 | self.dataIn.type)) |
@@ -214,8 +214,6 class selectHeights(Operation): | |||||
214 | """ |
|
214 | """ | |
215 |
|
215 | |||
216 | if self.dataOut.type == 'Voltage': |
|
216 | if self.dataOut.type == 'Voltage': | |
217 | print(minIndex) |
|
|||
218 | print(maxIndex) |
|
|||
219 | if (minIndex < 0) or (minIndex > maxIndex): |
|
217 | if (minIndex < 0) or (minIndex > maxIndex): | |
220 | raise ValueError("Height index range (%d,%d) is not valid" % (minIndex, maxIndex)) |
|
218 | raise ValueError("Height index range (%d,%d) is not valid" % (minIndex, maxIndex)) | |
221 |
|
219 |
General Comments 0
You need to be logged in to leave comments.
Login now