Skip to content

An immediate reduction keeps the reduced axis in shape #179

Closed
@FrancescAlted

Description

@FrancescAlted

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions