Skip to content

fix(plugins): add acquisitions to the group chosen when Acquire is clicked - #446

Merged
PierreRaybaut merged 1 commit into
developfrom
fix/445-instrument-acquisition-group
Oct 28, 2026
Merged

PierreRaybaut merged 1 commit into
developfrom
fix/445-instrument-acquisition-group

Conversation

@PierreRaybaut

Copy link
Copy Markdown
Contributor

Closes #445

Summary

  • The New group option and the current group of each panel are taken when Acquire is clicked (AcquisitionTarget), instead of being read once the acquisition is done. Before, selecting another group or toggling the option while an acquisition was running (or waiting for the end of a preview) changed where the acquired objects went.
  • The destination is carried with the call of the instrument (SIG_CALL_DONE returns it with the result), so that a request made during a running acquisition does not change its destination either.
  • If the chosen group was removed meanwhile, a new group is created, as in DataLab-Web.
  • InstrumentWindow.add_acquisition(acquisition, target=None): without a target, the current state is used (unchanged behavior for direct calls).
  • Documentation (plugins.rst, release notes 1.4) and French translations updated.

Tests

  • New application test test_instrument_acquisition_target (acquisition blocked while the test selects another group, toggles the option, or removes the chosen group); it fails without the fix.
  • test_live_mode_after_acquisition: the main window double now provides the panels whose current group is taken when Acquire is clicked.
  • datalab/tests/features/plugins, datalab/tests/backbone/plugins and the configuration persistence test pass (308 tests), as well as the desktop adapter test of datalab-tango.

…icked

The instrument window read the "New group" option and the current group of
the panel once the acquisition was done: selecting another group or
toggling the option while a (possibly long) acquisition was running, or
waiting for the end of a preview, changed where the acquired objects went.

The option and the current group of each panel are now taken when Acquire
is clicked (AcquisitionTarget) and carried with the call of the
instrument, so that a request made during a running acquisition does not
change its destination either. A new group is created if the chosen group
was removed meanwhile, as in DataLab-Web.

Closes #445

Assisted-by: Claude Opus 5.5
@PierreRaybaut
PierreRaybaut merged commit fe5745f into develop Oct 28, 2026
6 checks passed
@PierreRaybaut
PierreRaybaut deleted the fix/445-instrument-acquisition-group branch October 28, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant