Skip to content

Commit

Permalink
export tiledbsoma.SparseNDArrayRead, include in module doc site
Browse files Browse the repository at this point in the history
fixes #2502
  • Loading branch information
ryan-williams committed May 10, 2024
1 parent 18c3e6c commit 6f66111
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apis/python/src/tiledbsoma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
)
from ._indexer import IntIndexer, tiledbsoma_build_index
from ._measurement import Measurement
from ._sparse_nd_array import SparseNDArray
from ._sparse_nd_array import SparseNDArray, SparseNDArrayRead
from .options import SOMATileDBContext, TileDBCreateOptions
from .pytiledbsoma import (
tiledbsoma_stats_disable,
Expand Down Expand Up @@ -205,6 +205,7 @@
"SOMAError",
"SOMATileDBContext",
"SparseNDArray",
"SparseNDArrayRead",
"TileDBCreateOptions",
"tiledbsoma_build_index",
"tiledbsoma_stats_disable",
Expand Down
3 changes: 2 additions & 1 deletion apis/python/src/tiledbsoma/_sparse_nd_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ def __init__(


class SparseNDArrayRead(_SparseNDArrayReadBase):
"""Intermediate type to choose result format when reading a sparse array.
""":class:`SparseNDArrayRead` is an intermediate type which supports multiple eventual result formats
when reading a sparse array.
Results returned by `coos` and `tables` iterate over COO coordinates in the user-specified result order,
but with breaks between iterator steps at arbitrary coordinates (i.e., any given result may split a row or
Expand Down
5 changes: 3 additions & 2 deletions doc/source/python-tiledbsoma.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ Classes

tiledbsoma.DataFrame
tiledbsoma.SparseNDArray
tiledbsoma.SparseNDArrayRead
tiledbsoma.DenseNDArray

tiledbsoma.ResultOrder
tiledbsoma.ResultOrder

tiledbsoma.AxisColumnNames
tiledbsoma.AxisQuery
Expand Down Expand Up @@ -56,4 +57,4 @@ Functions
tiledbsoma.tiledbsoma_stats_disable
tiledbsoma.tiledbsoma_stats_dump
tiledbsoma.tiledbsoma_stats_enable
tiledbsoma.tiledbsoma_stats_reset
tiledbsoma.tiledbsoma_stats_reset

0 comments on commit 6f66111

Please sign in to comment.