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

replace .dims with .sizes #212

Merged

Conversation

veenstrajelmer
Copy link
Collaborator

@veenstrajelmer veenstrajelmer commented Feb 8, 2024

@JoerivanEngelen: maybe this should also be replaced in tests/test_ugrid_dataset.py (and one additional line)

@veenstrajelmer veenstrajelmer linked an issue Feb 8, 2024 that may be closed by this pull request
@JoerivanEngelen
Copy link
Contributor

Thanks for fixing, I see this attribute has been added in xarray v0.9.0, we should add this as minimum version to our pyproject.toml, could you add that?

@Huite
Copy link
Collaborator

Huite commented Feb 8, 2024

Thanks for fixing, I see this attribute has been added in xarray v0.9.0, we should add this as minimum version to our pyproject.toml, could you add that?

Are you suggesting to add >=0.9.0 to the pyproject.toml? Hard disagree from me! Xarray version 0.9.0 is so old (2017) that it's not a meaningful limit.

Check this on pypi:

https://pypi.org/project/xarray/0.9.0/

image

Just leave it as is IMO.

@JoerivanEngelen JoerivanEngelen merged commit 0a41f61 into main Feb 9, 2024
5 checks passed
@JoerivanEngelen JoerivanEngelen deleted the 211-avoid-futurewarning-for-dim_size-=-dsdimsdim branch February 9, 2024 09:03
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.

Avoid Futurewarning for dim_size = ds.dims[dim]
3 participants