File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3737)
3838from PySide6 .QtWidgets import QDialog , QInputDialog , QMenu , QSizePolicy
3939
40- from ..RFTools import Datapoint
4140from .Chart import Chart , ChartPosition
4241
4342logger = logging .getLogger (__name__ )
@@ -343,10 +342,6 @@ def copy(self) -> "TDRChart":
343342
344343 def wheelEvent (self , a0 : QWheelEvent ) -> None :
345344 a0 .accept ()
346- self .data = [
347- Datapoint (0 , 0.0 , 0.0 )
348- ] # A bit of cheating otherwise the super().wheelEvent() exits
349- # without doing anything.
350345 super ().wheelEvent (a0 )
351346
352347 def mouseMoveEvent (self , a0 : QMouseEvent ) -> None :
Original file line number Diff line number Diff line change 2828from scipy .constants import speed_of_light # type: ignore
2929from scipy .signal import convolve # type: ignore
3030
31+ from ..RFTools import Datapoint
3132from .Defaults import make_scrollable
3233from .ui import get_window_icon
3334
@@ -292,6 +293,10 @@ def updateTDR(self):
292293 self .tdr_result_label .setText (f"{ cable_len } m ({ feet } ft { inches } in)" )
293294 self .app .tdr_result_label .setText (f"{ cable_len } m" )
294295 self .td = list (td )
296+ self .app .tdr_chart .data = [
297+ Datapoint (0 , 0.0 , 0.0 )
298+ ] # A bit of cheating otherwise the super().wheelEvent() exits
299+ # without doing anything.
295300 self .updated .emit ()
296301
297302 def _tdr_lowpass (self , tdr_format , s11 , tdr_window ) -> np .ndarray :
You can’t perform that action at this time.
0 commit comments