File tree 1 file changed +21
-3
lines changed
1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -848,19 +848,37 @@ def make_slice_selection(selection):
848
848
849
849
850
850
class PartialChunkIterator :
851
- """Iterator tp retrieve the specific coordinates of requested data
851
+ """Iterator to retrieve the specific coordinates of requested data
852
852
from within a compressed chunk.
853
853
854
854
Parameters
855
- -----------
855
+ ----------
856
856
selection : tuple
857
857
tuple of slice objects to take from the chunk
858
858
arr_shape : shape of chunk to select data from
859
859
860
860
Attributes
861
- -----------
861
+ ----------
862
862
arr_shape
863
863
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.
864
882
"""
865
883
866
884
def __init__ (self , selection , arr_shape ):
You can’t perform that action at this time.
0 commit comments