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
61
61
By `Tom White <https://github.com/tomwhite >`_ and `Kai Mühlbauer <https://github.com/kmuehlbauer >`_.
62
62
- Ensure dtype of reindex result matches dtype of the original DataArray (:issue: `7299 `, :pull: `7917 `)
63
63
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 >`_.
64
66
65
67
Documentation
66
68
~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ def open_group(
417
417
if consolidated is None :
418
418
consolidated = False
419
419
420
- if chunk_store :
420
+ if chunk_store is not None :
421
421
open_kwargs ["chunk_store" ] = chunk_store
422
422
if consolidated is None :
423
423
consolidated = False
Original file line number Diff line number Diff line change @@ -1849,6 +1849,8 @@ def test_with_chunkstore(self) -> None:
1849
1849
with self .create_zarr_target () as store_target , self .create_zarr_target () as chunk_store :
1850
1850
save_kwargs = {"chunk_store" : chunk_store }
1851
1851
self .save (expected , store_target , ** save_kwargs )
1852
+ # the chunk store must have been populated with some entries
1853
+ assert len (chunk_store ) > 0
1852
1854
open_kwargs = {"backend_kwargs" : {"chunk_store" : chunk_store }}
1853
1855
with self .open (store_target , ** open_kwargs ) as ds :
1854
1856
assert_equal (ds , expected )
You can’t perform that action at this time.
0 commit comments