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

Added driver parameter for h5netcdf #8360

Merged
merged 11 commits into from
Nov 15, 2023
4 changes: 4 additions & 0 deletions xarray/backends/h5netcdf_.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def open(
invalid_netcdf=None,
phony_dims=None,
decode_vlen_strings=True,
driver=None,
zequihg50 marked this conversation as resolved.
Show resolved Hide resolved
):
import h5netcdf

Expand All @@ -161,6 +162,7 @@ def open(
kwargs = {
"invalid_netcdf": invalid_netcdf,
"decode_vlen_strings": decode_vlen_strings,
"driver": driver,
kmuehlbauer marked this conversation as resolved.
Show resolved Hide resolved
}
zequihg50 marked this conversation as resolved.
Show resolved Hide resolved
if phony_dims is not None:
kwargs["phony_dims"] = phony_dims
Expand Down Expand Up @@ -397,6 +399,7 @@ def open_dataset( # type: ignore[override] # allow LSP violation, not supporti
invalid_netcdf=None,
phony_dims=None,
decode_vlen_strings=True,
driver=None,
zequihg50 marked this conversation as resolved.
Show resolved Hide resolved
) -> Dataset:
filename_or_obj = _normalize_path(filename_or_obj)
store = H5NetCDFStore.open(
Expand All @@ -407,6 +410,7 @@ def open_dataset( # type: ignore[override] # allow LSP violation, not supporti
invalid_netcdf=invalid_netcdf,
phony_dims=phony_dims,
decode_vlen_strings=decode_vlen_strings,
driver=driver,
zequihg50 marked this conversation as resolved.
Show resolved Hide resolved
)

store_entrypoint = StoreBackendEntrypoint()
Expand Down
Loading