Skip to content

Commit

Permalink
Zarr can be .zip
Browse files Browse the repository at this point in the history
  • Loading branch information
aulemahal committed Jul 4, 2024
1 parent b8a3869 commit 4cdd62e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Internal changes
^^^^^^^^^^^^^^^^
* Include domain in `weight_location` in ``regrid_dataset``. (:pull:`414`).
* Added pins to `xarray`, `xclim`, `h5py`, and `netcdf4`. (:pull:`414`).
* Add ``.zip`` and ``.zarr.zip`` as possible file extensions for Zarr datasets. (:pull: `426`).

v0.9.1 (2024-06-04)
-------------------
Expand Down
2 changes: 1 addition & 1 deletion src/xscen/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_engine(file: Union[str, os.PathLike]) -> str:
Engine to use with xarray
"""
# find the ideal engine for xr.open_mfdataset
if Path(file).suffix == ".zarr":
if Path(file).suffix in [".zarr", ".zip", ".zarr.zip"]:
engine = "zarr"
elif h5py.is_hdf5(file):
engine = "h5netcdf"
Expand Down

0 comments on commit 4cdd62e

Please sign in to comment.