Skip to content

Select channels#395

Open
LucaMarconato wants to merge 32 commits into
mainfrom
select_channels
Open

Select channels#395
LucaMarconato wants to merge 32 commits into
mainfrom
select_channels

Conversation

@LucaMarconato
Copy link
Copy Markdown
Member

@LucaMarconato LucaMarconato commented May 15, 2026

Replaces #365

See PR description from @melonora there.

melonora and others added 30 commits March 28, 2024 09:05
Given that the code is private and we know which function is used for which widget I removed the overhead
that the wrapper creates
LucaMarconato and others added 2 commits May 15, 2026 11:05
- Remove the dedicated Channels widget from SdataWidget; channel-specific
  layer loading is now triggered from the View panel instead.
- Add an 'add in new layer' checkbox inline with the Vars label. When
  checked, double-clicking a var (or a multi-selection of vars) loads each
  selected channel as a new napari layer instead of navigating the slider.
- Multi-selection support: mousePressEvent captures the pre-click selection
  so that double-clicking any already-selected item acts on the full set.
  AListWidget emits load_channels(tuple) once for all selected channels.
- Sequential queue in SdataWidget (_enqueue_channel / _process_queue):
  channels are loaded one after the other without blocking the UI or
  showing 'Please wait'. _onClick retains its original guard for
  user-initiated single-element loads.
- Fix: skip dims.set_point and _channel_changed processing when the active
  layer is a 2D channel-specific image (no channel dimension to navigate).
- Add test_add_in_new_layer_multiple_channels covering async sequential
  loading of three channels via _enqueue_channel.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@LucaMarconato LucaMarconato mentioned this pull request May 15, 2026
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.

2 participants