added a bscan extension
This commit is contained in:
@@ -18,6 +18,7 @@ from PyQt6.QtWidgets import (
|
||||
QWidget,
|
||||
)
|
||||
|
||||
from python_app.gui.controllers.app_window_config.state_builders import GUI_SAVE_HISTORY_LIMIT
|
||||
from python_app.gui.controllers.sections.layout_helpers import FormRow, build_two_column_form_widget
|
||||
|
||||
|
||||
@@ -160,6 +161,15 @@ def build_processing_group(owner) -> QGroupBox:
|
||||
owner._bscan_subtract_mean_ascan = QCheckBox("Subtract mean A-scan")
|
||||
owner._bscan_subtract_mean_ascan.setChecked(bool(bscan_defaults.subtract_mean_ascan))
|
||||
|
||||
owner._bscan_history_window = QSpinBox()
|
||||
owner._bscan_history_window.setMinimum(1)
|
||||
owner._bscan_history_window.setMaximum(GUI_SAVE_HISTORY_LIMIT)
|
||||
owner._bscan_history_window.setValue(int(bscan_defaults.history_window_scans))
|
||||
owner._bscan_history_window.setToolTip(
|
||||
"How many past sweeps the B-scan shows once acquisition is stopped. While "
|
||||
"running, the window stays clamped to the C++ ring capacity."
|
||||
)
|
||||
|
||||
bscan_page = _build_processing_mode_page(
|
||||
owner._processing_mode_pages,
|
||||
[
|
||||
@@ -169,6 +179,7 @@ def build_processing_group(owner) -> QGroupBox:
|
||||
("Gain", owner._bscan_gain),
|
||||
("Start MHz", owner._bscan_start_freq_mhz),
|
||||
("Stop MHz", owner._bscan_stop_freq_mhz),
|
||||
("Scans to show (stopped)", owner._bscan_history_window),
|
||||
owner._bscan_subtract_mean_ascan,
|
||||
],
|
||||
split_index=4,
|
||||
@@ -569,6 +580,7 @@ def build_processing_group(owner) -> QGroupBox:
|
||||
owner._bscan_start_freq_mhz.valueChanged.connect(owner._on_processing_live_settings_changed)
|
||||
owner._bscan_stop_freq_mhz.valueChanged.connect(owner._on_processing_live_settings_changed)
|
||||
owner._bscan_subtract_mean_ascan.toggled.connect(owner._on_processing_live_settings_changed)
|
||||
owner._bscan_history_window.valueChanged.connect(owner._on_processing_live_settings_changed)
|
||||
owner._gpr_input_positions_input.editingFinished.connect(owner._on_processing_live_settings_changed)
|
||||
owner._gpr_output_positions_input.editingFinished.connect(owner._on_processing_live_settings_changed)
|
||||
owner._gpr_min_depth_m.valueChanged.connect(owner._on_processing_live_settings_changed)
|
||||
|
||||
Reference in New Issue
Block a user