Skip to content

Commit

Permalink
[python] Expose tiledbsoma.io.ExperimentAmbientLabelMapping (#2175)
Browse files Browse the repository at this point in the history
* [python] Expose tiledbsoma.io.ExperimentAmbientLabelMapping

* protect

* code-review feedback
  • Loading branch information
johnkerl committed Feb 28, 2024
1 parent b164324 commit 3a83746
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apis/python/src/tiledbsoma/io/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from ._registration import (
ExperimentAmbientLabelMapping,
)
from .ingest import (
add_matrix_to_collection,
add_X_layer,
Expand Down Expand Up @@ -32,4 +35,5 @@
"update_matrix",
"update_obs",
"update_var",
"ExperimentAmbientLabelMapping",
)
8 changes: 8 additions & 0 deletions apis/python/tests/test_registration_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,3 +1094,11 @@ def test_registration_with_batched_reads(tmp_path, soma_larger, use_small_buffer
)

assert len(rd.obs_axis.data) == 1000


def test_ealm_expose():
"""Checks that this is exported from tiledbsoma.io._registration"""
# All we want to check is that the import doesn't throw. Job done. Period.
# However, the pre-commit hook will strip out this import statement as "unused".
# So, assert something.
assert tiledbsoma.io.ExperimentAmbientLabelMapping is not None

0 comments on commit 3a83746

Please sign in to comment.