0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00
This commit is contained in:
2025-07-10 14:21:42 +02:00
parent 72b5c46912
commit b9eff4eecf
6 changed files with 0 additions and 8 deletions

View File

@ -37,7 +37,6 @@ def get_plugin_widgets() -> dict[str, BECConnector]:
""" """
modules = _get_available_plugins("bec.widgets.user_widgets") modules = _get_available_plugins("bec.widgets.user_widgets")
loaded_plugins = {} loaded_plugins = {}
print(modules)
for module in modules: for module in modules:
mods = inspect.getmembers(module, predicate=_filter_plugins) mods = inspect.getmembers(module, predicate=_filter_plugins)
for name, mod_cls in mods: for name, mod_cls in mods:

View File

@ -149,7 +149,6 @@ _web_console_registry = WebConsoleRegistry()
def suppress_qt_messages(type_, context, msg): def suppress_qt_messages(type_, context, msg):
if context.category in ["js", "default"]: if context.category in ["js", "default"]:
return return
print(msg)
qInstallMessageHandler(suppress_qt_messages) qInstallMessageHandler(suppress_qt_messages)

View File

@ -8,7 +8,6 @@ from bec_widgets.utils.bec_widget import BECWidget
def suppress_qt_messages(type_, context, msg): def suppress_qt_messages(type_, context, msg):
if context.category in ["js", "default"]: if context.category in ["js", "default"]:
return return
print(msg)
qInstallMessageHandler(suppress_qt_messages) qInstallMessageHandler(suppress_qt_messages)

View File

@ -865,7 +865,6 @@ class ImageBase(PlotBase):
enabled(bool): Whether to enable autorange. enabled(bool): Whether to enable autorange.
sync(bool): Whether to synchronize the autorange state across all layers. sync(bool): Whether to synchronize the autorange state across all layers.
""" """
print(f"Setting autorange to {enabled}")
for layer in self.layer_manager: for layer in self.layer_manager:
if not layer.sync.autorange: if not layer.sync.autorange:
continue continue
@ -875,7 +874,6 @@ class ImageBase(PlotBase):
# if sync: # if sync:
self._sync_colorbar_levels() self._sync_colorbar_levels()
self._sync_autorange_switch() self._sync_autorange_switch()
print(f"Autorange set to {enabled}")
@SafeProperty(str) @SafeProperty(str)
def autorange_mode(self) -> str: def autorange_mode(self) -> str:
@ -897,7 +895,6 @@ class ImageBase(PlotBase):
Args: Args:
mode(str): The autorange mode. Options are "max" or "mean". mode(str): The autorange mode. Options are "max" or "mean".
""" """
print(f"Setting autorange mode to {mode}")
# for qt Designer # for qt Designer
if mode not in ["max", "mean"]: if mode not in ["max", "mean"]:
return return

View File

@ -93,7 +93,6 @@ def test_logpanel_output(qtbot, log_panel: LogPanel):
assert log_panel.plain_text == TEST_COMBINED_PLAINTEXT assert log_panel.plain_text == TEST_COMBINED_PLAINTEXT
def display_queue_empty(): def display_queue_empty():
print(log_panel._log_manager._display_queue)
return len(log_panel._log_manager._display_queue) == 0 return len(log_panel._log_manager._display_queue) == 0
next_text = "datetime | error | test log message" next_text = "datetime | error | test log message"

View File

@ -296,7 +296,6 @@ def test_on_scan_selected(scan_control, scan_name):
# Check kwargs boxes # Check kwargs boxes
kwargs_group = [param for param in expected_scan_info["gui_config"]["kwarg_groups"]] kwargs_group = [param for param in expected_scan_info["gui_config"]["kwarg_groups"]]
print(kwargs_group)
for kwarg_box, kwarg_group in zip(scan_control.kwarg_boxes, kwargs_group): for kwarg_box, kwarg_group in zip(scan_control.kwarg_boxes, kwargs_group):
assert kwarg_box.title() == kwarg_group["name"] assert kwarg_box.title() == kwarg_group["name"]