Skip to content

An immediate reduction keeps the reduced axis in shape #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
FrancescAlted opened this issue May 7, 2025 · 1 comment
Closed

An immediate reduction keeps the reduced axis in shape #179

FrancescAlted opened this issue May 7, 2025 · 1 comment
Assignees

Comments

@FrancescAlted
Copy link
Member

For example, when I type in the prompt:

imag = mean(@public/examples/numbers_color.b2nd, axis=0)

This gives a dataset with shape = (368, 744, 4) as a result, which is correct.

But, if I do (note the walrus operator):

imag2 := mean(@public/examples/numbers_color.b2nd, axis=0)

This outputs a computed datasets with shape = (1, 368, 744, 4) as a result, which is not wrong, but it does not follow numpy conventions.

@lshaw8317
Copy link
Collaborator

Fixed in blosc2 (see Blosc/python-blosc2#404).

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

No branches or pull requests

2 participants