Minor bugfixes: Example Marker should obey the return loss sign, and bandpass analysis reset needs to reset the center frequency.

pull/89/head
Rune Broberg 2019-11-07 16:28:18 +01:00
rodzic 9ff6c6eb4b
commit 67a743b91c
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -262,7 +262,7 @@ class HighPassAnalysis(Analysis):
if pass_band_location < 0:
logger.debug("No location for %s", self.app.markers[0].name)
self.result_label.setText("Please place " + self.app.markers[0].name + " in the passband.")
self.result_label.setText("Please place " + self.app.markers[0].name + " in the passband.")
return
pass_band_db = RFTools.gain(self.app.data21[pass_band_location])
@ -437,6 +437,7 @@ class BandPassAnalysis(Analysis):
def reset(self):
self.result_label.clear()
self.center_frequency_label.clear()
self.span_label.clear()
self.quality_label.clear()
self.six_db_span_label.clear()

Wyświetl plik

@ -1429,6 +1429,8 @@ class DisplaySettingsWindow(QtWidgets.QWidget):
for m in self.app.markers:
m.returnloss_is_positive = state
m.updateLabels(self.app.data, self.app.data21)
self.marker_window.exampleMarker.returnloss_is_positive = state
self.marker_window.updateMarker()
self.app.s11LogMag.isInverted = state
self.app.s11LogMag.update()