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

Avoid xarray len implementation loading data #1467

Merged
merged 1 commit into from
May 22, 2017
Merged

Avoid xarray len implementation loading data #1467

merged 1 commit into from
May 22, 2017

Conversation

philippjfr
Copy link
Member

XArray supports lazy loading of data but the current xarray interface uses the actual array data to determine the length of the data, which is highly inefficient. This PR instead uses the product of the coordinate array lengths which are always in memory to determine the overall length.

@jlstevens
Copy link
Contributor

Makes sense, happy to merge when the tests go green.

@jlstevens
Copy link
Contributor

Tests are green. Merging.

Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants