@@ -292,20 +292,20 class VoltageProc(ProcessingUnit): | |||
|
292 | 292 | |
|
293 | 293 | minIndex = 0 |
|
294 | 294 | maxIndex = 0 |
|
295 |
|
|
|
295 | heights = self.dataOut.heightList | |
|
296 | 296 | |
|
297 | for i,val in enumerate(data): | |
|
298 | if val < minHei: | |
|
299 | continue | |
|
300 | else: | |
|
301 | minIndex = i; | |
|
302 | break | |
|
297 | inda = numpy.where(heights >= minHei) | |
|
298 | indb = numpy.where(heights <= maxHei) | |
|
303 | 299 | |
|
304 | for i,val in enumerate(data): | |
|
305 | if val <= maxHei: | |
|
306 | maxIndex = i; | |
|
307 |
|
|
|
308 | break | |
|
300 | try: | |
|
301 | minIndex = inda[0][0] | |
|
302 | except: | |
|
303 | minIndex = 0 | |
|
304 | ||
|
305 | try: | |
|
306 | maxIndex = indb[0][-1] | |
|
307 | except: | |
|
308 | maxIndex = len(heights) | |
|
309 | 309 | |
|
310 | 310 | self.selectHeightsByIndex(minIndex, maxIndex) |
|
311 | 311 |
General Comments 0
You need to be logged in to leave comments.
Login now