Skip to content

Support label-based indexing with empty arrays - #3850

Merged
jl-wynen merged 3 commits into
mainfrom
label-slicing-empty-array
Feb 24, 2026
Merged

jl-wynen merged 3 commits into
mainfrom
label-slicing-empty-array

Conversation

@jl-wynen

Copy link
Copy Markdown
Member

Slicing by a label range should work on empty arrays the same as slicing by an index range. I ran into this while implementing a test for scipp/essreduce#320

@jl-wynen
jl-wynen merged commit 747b709 into main Feb 24, 2026
4 checks passed
@jl-wynen
jl-wynen deleted the label-slicing-empty-array branch February 24, 2026 10:26
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.

3 participants