From 9638d4c6992ca51c5c72466c947fbc904b1452b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Weber?= Date: Tue, 15 Apr 2025 15:02:20 +0200 Subject: [PATCH] Introduce the concept of grab signal override from extensions --- pyproject.toml | 2 +- src/pymodaq_plugins_datamixer/extensions/data_mixer.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0a4fb65..bbe22fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ authors = [ {name='Sebastien J. Weber', email='sebastien.weber@cnrs.fr'} ] dependencies = [ - "pymodaq>5.0.0" + "pymodaq>=5.1.0" ] classifiers = [ "Development Status :: 5 - Production/Stable", diff --git a/src/pymodaq_plugins_datamixer/extensions/data_mixer.py b/src/pymodaq_plugins_datamixer/extensions/data_mixer.py index bb765a2..96e291c 100644 --- a/src/pymodaq_plugins_datamixer/extensions/data_mixer.py +++ b/src/pymodaq_plugins_datamixer/extensions/data_mixer.py @@ -122,12 +122,13 @@ def process_data(self, dte: DataToExport): self.dte_computed_signal.emit(dte_computed) def snap(self): - self.modules_manager.grab_data() + self.modules_manager.grab_data(check_do_override=False) def create_computed_detectors(self): try: self.dashboard.add_det_from_extension('DataMixer', 'DAQ0D', 'DataMixer', self) self.set_action_enabled('create_computed_detectors', False) + self.dashboard.override_det_from_extension(self.modules_manager.selected_detectors_name) except Exception as e: logger.exception(str(e)) pass