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

Updates properties for xarray API change #1596

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

andrew-s28
Copy link
Contributor

xarray.Dataset.dims currently returns a dictionary mapping from dimension names to lengths. However, xarray developers are seeking to change that behavior, instead returning a set with only dimension names and keeping the previous behavior in xarray.Dataset.sizes. This change is planned to be implemented as soon as September, and deprecation warnings can already be found when running the code.

This PR changes dims to sizes in several locations in the core parcels code. Since xarray.Dataset.sizes already replicates the current behavior of xarray.Dataset.dims, this change should be fully backwards compatible.

@erikvansebille erikvansebille merged commit cdfd86e into OceanParcels:master Jul 15, 2024
9 checks passed
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.

None yet

2 participants