kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
Bugfix: VSWR analysis should now find the correct dips when there are more than 3. Fixes #78
rodzic
40833a5a44
commit
af37973ccc
|
@ -1278,8 +1278,10 @@ class VSWRAnalysis(Analysis):
|
|||
|
||||
best_dips = []
|
||||
for i in range(max_dips_shown):
|
||||
best_dips.append(minimums[np.argmin(dips)])
|
||||
dips.remove(np.min(dips))
|
||||
min_idx = np.argmin(dips)
|
||||
best_dips.append(minimums[min_idx])
|
||||
dips.remove(dips[min_idx])
|
||||
minimums.remove(minimums[min_idx])
|
||||
minimums = best_dips
|
||||
|
||||
if len(minimums) > 0:
|
||||
|
|
Ładowanie…
Reference in New Issue