Skip to content

Commit 869204b

Browse files
committed
Add doc
1 parent ee495af commit 869204b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

blosc2/ndarray.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -672,16 +672,20 @@ def _check_ndarray_kwargs(**kwargs):
672672
def get_slice_nchunks(schunk, key):
673673
"""
674674
Get the unidimensional chunk indexes needed to get a
675-
slice of a SChunk or a NDArray.
675+
slice of a :ref:`SChunk <SChunk>` or a :ref:`NDArray <NDArray>`.
676676
677677
Parameters
678678
----------
679-
schunk:
680-
key
679+
schunk: :ref:`SChunk <SChunk>` or :ref:`NDArray <NDArray>`
680+
The super-chunk or ndarray container.
681+
key: tuple(int, int), int, slice or sequence of slices
682+
If it is a super-chunk, the tuple with start and stop of the slice.
683+
If it is a ndarray, it can be any of the other types representing the slice.
681684
682685
Returns
683686
-------
684-
687+
out: np.ndarray
688+
An array with the unidimensional chunk indexes.
685689
"""
686690
if isinstance(schunk, NDArray):
687691
array = schunk

doc/reference/top_level.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,6 @@ Utils
7272
.. autosummary::
7373
:toctree: autofiles/top_level/
7474

75+
get_slice_nchunks
7576
open
7677
remove_urlpath

0 commit comments

Comments
 (0)