Skip to content

Commit

Permalink
[python] Expose AxisQuery and fast csr to tiledbsoma to use C++ reind…
Browse files Browse the repository at this point in the history
…exer
  • Loading branch information
beroy committed Sep 28, 2023
1 parent 53a772e commit 28e22ed
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python-spec/src/somacore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
from .options import ResultOrder
from .query import AxisColumnNames
from .query import AxisQuery
from .query import AxisQueryResult
from .query import CSRAccumulator
from .query import EagerIterator
from .query import ExperimentAxisQuery

try:
Expand Down Expand Up @@ -54,4 +57,7 @@
"AxisColumnNames",
"AxisQuery",
"ExperimentAxisQuery",
"CSRAccumulator",
"EagerIterator",
"AxisQueryResult",
)
16 changes: 16 additions & 0 deletions python-spec/src/somacore/query/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
from . import _eager_iter
from . import _fast_csr
from . import axis
from . import query

ExperimentAxisQuery = query.ExperimentAxisQuery
AxisColumnNames = query.AxisColumnNames
AxisQueryResult = query._AxisQueryResult
AxisQuery = axis.AxisQuery
# importing CSRAccumulator and EagerIterator to be used in tiledbsome
# for overwriting theAxisQuery run with C++ re-indexer
CSRAccumulator = _fast_csr._CSRAccumulator
EagerIterator = _eager_iter.EagerIterator
_accum_row_length = _fast_csr._accum_row_length
_create_scipy_csr_matrix = _fast_csr._create_scipy_csr_matrix
_select_dtype = _fast_csr._select_dtype

__all__ = (
"ExperimentAxisQuery",
"AxisColumnNames",
"AxisQuery",
"CSRAccumulator",
"EagerIterator",
"AxisQueryResult",
"_create_scipy_csr_matrix",
"_select_dtype",
"_accum_row_length",
)

0 comments on commit 28e22ed

Please sign in to comment.