Skip to content

Commit

Permalink
Infer storage_options in zarr, if given mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed May 3, 2024
1 parent 6fe1f0a commit 7f63bf9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ include LICENSE

prune tests
prune examples
global-exclude *.hdf *.hdf5 *.h5 *.grib2 *.tiff *.tif *.json test*.py
2 changes: 1 addition & 1 deletion kerchunk/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def _replace(l: list, i: int, v) -> list:

def auto_dask(
urls: List[str],
single_driver: str,
single_driver: type,
single_kwargs: dict,
mzz_kwargs: dict,
n_batches: int,
Expand Down
2 changes: 2 additions & 0 deletions kerchunk/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def single_zarr(
mapper = fsspec.get_mapper(uri_or_store, **(storage_options or {}))
else:
mapper = uri_or_store
if isinstance(mapper, fsspec.FSMap) and storage_options is None:
storage_options = mapper.fs.storage_options

refs = out or {}
for k in mapper:
Expand Down

0 comments on commit 7f63bf9

Please sign in to comment.