Bugfix: VSWR analysis should now find the correct dips when there are more than 3. Fixes #78

pull/89/head
Rune Broberg 2019-11-06 10:39:55 +01:00
rodzic 40833a5a44
commit af37973ccc
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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: