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