Skip to content

Commit

Permalink
Fix engine parameter for xarray open_dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Mancini committed Jan 30, 2024
1 parent 5096c15 commit 6d95a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geokube/backend/netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def open_datacube(
ds = _read_cache(metadata_cache_path)
if ds is not None:
return ds
engine = _get_engine(path)
engine = kwargs.pop('engine', None) or _get_engine(path)
if engine == "netcdf4":
kwargs.setdefault("decode_coords", "all")
ds = geokube.core.datacube.DataCube.from_xarray(
Expand Down

0 comments on commit 6d95a56

Please sign in to comment.