Skip to content

Commit 9eaa6a9

Browse files
committed
some documentation
1 parent 3326c6f commit 9eaa6a9

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

zarr/indexing.py

+21-3
Original file line numberDiff line numberDiff line change
@@ -848,19 +848,37 @@ def make_slice_selection(selection):
848848

849849

850850
class PartialChunkIterator:
851-
"""Iterator tp retrieve the specific coordinates of requested data
851+
"""Iterator to retrieve the specific coordinates of requested data
852852
from within a compressed chunk.
853853
854854
Parameters
855-
-----------
855+
----------
856856
selection : tuple
857857
tuple of slice objects to take from the chunk
858858
arr_shape : shape of chunk to select data from
859859
860860
Attributes
861-
-----------
861+
----------
862862
arr_shape
863863
selection
864+
865+
Returns
866+
-------
867+
Tuple with 3 elements:
868+
869+
start: int
870+
? bytes offset in the chunk to read from
871+
nitems: int
872+
? number of (bytes? elements?) to read in the chunk from start
873+
partial_out_selection: list of slices
874+
? indices of the final selection to assign to after the partial read.
875+
876+
Notes
877+
-----
878+
879+
My understanding of the partial read is that it create an empty array of the final shape of the required selection;
880+
and then do partial reading (with hacks in Blosc to do only partial decompress).
881+
And assign thos partial reads into the final partial buffer.
864882
"""
865883

866884
def __init__(self, selection, arr_shape):

0 commit comments

Comments
 (0)