Skip to content

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 Parcels-code:master Jul 15, 2024
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.

2 participants