diff --git a/apis/python/src/tiledbsoma/io/__init__.py b/apis/python/src/tiledbsoma/io/__init__.py index 28d02fade..2d969a4ac 100644 --- a/apis/python/src/tiledbsoma/io/__init__.py +++ b/apis/python/src/tiledbsoma/io/__init__.py @@ -1,3 +1,6 @@ +from ._registration import ( + ExperimentAmbientLabelMapping, +) from .ingest import ( add_matrix_to_collection, add_X_layer, @@ -32,4 +35,5 @@ "update_matrix", "update_obs", "update_var", + "ExperimentAmbientLabelMapping", ) diff --git a/apis/python/tests/test_registration_mappings.py b/apis/python/tests/test_registration_mappings.py index a89a6cca8..58cbb6153 100644 --- a/apis/python/tests/test_registration_mappings.py +++ b/apis/python/tests/test_registration_mappings.py @@ -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