Skip to content

Commit fcb28a9

Browse files
committed
refine documentation and error messages
1 parent aff78ce commit fcb28a9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

zarr/creation.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,12 @@ def open_array(
430430
storage_options : dict
431431
If using an fsspec URL to create the store, these will be passed to
432432
the backend implementation. Ignored otherwise.
433-
partial_decompress:
433+
partial_decompress : bool, optional
434+
If True and while the chunk_store is a FSStore and the compresion used
435+
is Blosc, when getting data from the array chunks will be partially
436+
read and decompressed when possible.
437+
438+
.. versionadded:: 2.7
434439
435440
Returns
436441
-------

zarr/indexing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,8 +889,8 @@ def __init__(self, selection, arr_shape):
889889
if len(selection) > len(self.arr_shape):
890890
raise ValueError(
891891
"Selection has more dimensions then the array:\n"
892-
"selection dimensions = {len(selection)\n"
893-
"array dimensions = {len(self.arr_shape)}"
892+
f"selection dimensions = {len(selection)}\n"
893+
f"array dimensions = {len(self.arr_shape)}"
894894
)
895895

896896
# any selection can not be out of the range of the chunk

0 commit comments

Comments
 (0)