Skip to content
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

NamedArray.ndim can only be int #8362

Merged
merged 1 commit into from
Oct 23, 2023
Merged

NamedArray.ndim can only be int #8362

merged 1 commit into from
Oct 23, 2023

Conversation

Illviljan
Copy link
Contributor

ndim is usually defined as len(self.shape), which does not care about the values in the shape-tuple.
So there's no risk when getting unknown shape sizes from for example a masked dask array.

Reference:
https://data-apis.org/array-api/latest/API_specification/generated/array_api.array.ndim.html

@github-actions github-actions bot added the topic-NamedArray Lightweight version of Variable label Oct 23, 2023
@dcherian dcherian merged commit 7a68281 into pydata:main Oct 23, 2023
26 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-NamedArray Lightweight version of Variable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants