Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vincentsarago
Copy link
Member

@vincentsarago vincentsarago commented Oct 14, 2025

closes #831

This PR adds a MAX_PIXELS constant which limit the shape of data array users could put in Memory (after a xarray .sel)

Copy link
Contributor

@hrodmn hrodmn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the mechanics of this change look good, but wonder if the 100_000_000 pixels default is right. 100_000_000 seems like a good starting point but would it make sense to set a maximum array size in bytes, then calculate the array size using the data type and the dimensions.

@vincentsarago vincentsarago requested a review from hrodmn October 15, 2025 07:59
@vincentsarago vincentsarago merged commit 286904a into main Oct 21, 2025
6 checks passed
@vincentsarago vincentsarago deleted the feature/max_pixel_error branch October 21, 2025 16:22
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

Successfully merging this pull request may close these issues.

[xarray] Raise error when array is too big

3 participants