File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ Bug fixes
6161 By `Tom White <https://github.com/tomwhite >`_ and `Kai Mühlbauer <https://github.com/kmuehlbauer >`_.
6262- Ensure dtype of reindex result matches dtype of the original DataArray (:issue: `7299 `, :pull: `7917 `)
6363 By `Anderson Banihirwe <https://github.com/andersy005 >`_.
64+ - Fix bug where a zero-length zarr ``chunk_store `` was ignored as if it was ``None `` (:pull: `7923 `)
65+ By `Juniper Tyree <https://github.com/juntyr >`_.
6466
6567Documentation
6668~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ def open_group(
417417 if consolidated is None :
418418 consolidated = False
419419
420- if chunk_store :
420+ if chunk_store is not None :
421421 open_kwargs ["chunk_store" ] = chunk_store
422422 if consolidated is None :
423423 consolidated = False
Original file line number Diff line number Diff line change @@ -1849,6 +1849,8 @@ def test_with_chunkstore(self) -> None:
18491849 with self .create_zarr_target () as store_target , self .create_zarr_target () as chunk_store :
18501850 save_kwargs = {"chunk_store" : chunk_store }
18511851 self .save (expected , store_target , ** save_kwargs )
1852+ # the chunk store must have been populated with some entries
1853+ assert len (chunk_store ) > 0
18521854 open_kwargs = {"backend_kwargs" : {"chunk_store" : chunk_store }}
18531855 with self .open (store_target , ** open_kwargs ) as ds :
18541856 assert_equal (ds , expected )
You can’t perform that action at this time.
0 commit comments