Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-1.7] [python] Expose tiledbsoma.io.ExperimentAmbientLabelMapping #2178

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading