Skip to content

Commit

Permalink
FIX: timespan -> self.timespan
Browse files Browse the repository at this point in the history
  • Loading branch information
zdomke committed Sep 3, 2024
1 parent ab28a63 commit ae9f431
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion archive_viewer/archive_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@ def set_plot_timerange(self, button: QAbstractButton) -> None:
enable_scroll = button != self.ui.cursor_scale_btn
self.timespan = self.button_spans[button]
if enable_scroll:
logger.debug(f"Enabling plot autoscroll for {timespan}s")
logger.debug(f"Enabling plot autoscroll for {self.timespan}s")
else:
logger.debug("Disabling plot autoscroll, using mouse controls")
self.autoScroll(enable=enable_scroll)

def parse_macros_and_args(self, macros: Dict[str, str | list], args: List[str]) -> Tuple[str, list]:
"""Parse user provided macros and args into lists of PVs to use on
startup or which file to import on startup
Expand Down

0 comments on commit ae9f431

Please # to comment.