Skip to content

Enable indexing with multiple None for blosc2 arrays #403

@lshaw8317

Description

@lshaw8317

It would be nice to match behaviour of NumPy and have e.g.

a = blosc2.linspace(0, 10, num=100, shape=(10,10))
print(a[3, None].shape) # has shape (1,10)

so that new dummy axes may be introduced using None.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions