8000 Default to phony_dims="access" in h5netcdf-backend by kmuehlbauer · Pull Request #10058 · pydata/xarray · GitHub
[go: up one dir, main page]

Skip to content

Default to phony_dims="access" in h5netcdf-backend #10058

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

Merged
merged 13 commits into from
Feb 24, 2025
Merged
Next Next commit
Default to phony_dims="access" in open_datatree for h5ntecdf-backend.…
… Warn user about behaviour change.
  • Loading branch information
kmuehlbauer committed Feb 18, 2025
commit 707deeffc410e930430651aae566aec1c20452f1
11 changes: 11 additions & 0 deletions xarray/backends/h5netcdf_.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,17 @@ def open_groups_as_dict(
from xarray.core.treenode import NodePath
from xarray.core.utils import close_on_error

# Keep this message for some versions
# remove and set phony_dims="access" above
if phony_dims is None:
emit_user_level_warning(
"The 'phony_dims' kwarg now defaults to 'access'. "
"Previously 'phony_dims=None' would raise an error. "
"For full netcdf equivalence please use phony_dims='sort'.",
UserWarning,
)
phony_dims = "access"

filename_or_obj = _normalize_path(filename_or_obj)
store = H5NetCDFStore.open(
filename_or_obj,
Expand Down
Loading
0