navigate.controller.sub_controllers.diagnostics_popup.DiagnosticsPopupController
- class navigate.controller.sub_controllers.diagnostics_popup.DiagnosticsPopupController(popup: DiagnosticsPopup, parent_controller: Controller, *args, **kwargs)
Bases:
object
Controller for the Advanced Stage Parameters popup.
- __init__(popup: DiagnosticsPopup, parent_controller: Controller, *args, **kwargs) → None
Initialize the AdvancedStageParametersController class.
- Parameters:
root (tk.Tk) – The root window
popup (DiagnosticsPopup) – The popup window for the diagnostics
parent_controller (Controller) – The parent controller that manages this popup
*args – Variable length argument list
**kwargs – Arbitrary keyword arguments
Methods
__init__
(popup, parent_controller, *args, ...)Initialize the AdvancedStageParametersController class.
capture_image
()Close the popup window.
extract_times
(log_content[, kind])Extract times from JSON formatted performance log content for a specific kind.
Initialize empty plots with axes but no data.
plot_histogram
(panel, times[, title])Create a histogram of image display times with statistics.
Generate and display dummy data for all diagnostic plots.
showup
()This function will let the popup window show in front.
Attributes
Popup window for the stage limits.
- close_popup() → None
Close the popup window.
- static extract_times(log_content: Optional[Any], kind: str = '') → Optional[list]
Extract times from JSON formatted performance log content for a specific kind.
- Parameters:
log_content (list or None) – List of log entries (dictionaries) from the performance log
kind (str) – The kind of operation to filter by (e.g., “Stage Position”, “DAQ Triggers”, etc.) If empty, returns all durations.
- Returns:
times – A list of float values representing times in seconds. Returns None if no times are found.
- Return type:
Optional[list]
- initialize_plots() → None
Initialize empty plots with axes but no data.
- plot_histogram(panel: int, times: Optional[Iterable], title='') → None
Create a histogram of image display times with statistics.
- Parameters:
panel (int) – The panel number to plot the histogram on (1-6)
times (Optional[Iterable]) – A list of times in nanoseconds to plot
title (str) – The title for the plot. If empty, a default title will be used.
- populate_plots() → None
Generate and display dummy data for all diagnostic plots.
- showup() → None
This function will let the popup window show in front.