Skip to content

Conversation

@lshaw8317
Copy link
Collaborator

@lshaw8317 lshaw8317 commented Dec 9, 2025

Array API compliance requires None indexing to introduce a new "dummy" axis (as in NumPy). As part of this effort, this PR implements this behaviour for LazyArray objects:

import blosc2
import numpy as np
a = blosc2.ones((10,))
expr = a + 1 
sl = (np.newaxis, slice(3, 8), None)
res = expr[sl]
print(res.shape) # (1, 5, 1)

@FrancescAlted
Copy link
Member

LGTM

@FrancescAlted FrancescAlted merged commit 87f1e93 into main Jan 8, 2026
15 checks passed
@FrancescAlted FrancescAlted deleted the add_nonindexing branch January 8, 2026 11:15
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