Skip to content

Commit

Permalink
Update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-dark committed Sep 18, 2024
1 parent 7a9516a commit 839871c
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions python-spec/src/somacore/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,19 @@ class Scene(
soma_type: Final = "SOMAScene" # type: ignore[misc]

img = _mixin.item[collection.Collection[_MultiscaleImage]]()
"""A collection of multiscale images backing the spatial data."""
"""A collection of multiscale images backing the spatial data.
Lifecycle: experimental
"""

obsl = _mixin.item[collection.Collection[Union[_PointCloud, _GeometryDataFrame]]]()
"""A collection of observation location data.
This collection exists to store any spatial data in the scene that joins on the obs
``soma_joinid``. Each dataframe in ``obsl`` can be either a PointCloud
or a GeometryDataFrame.
Lifecycle: experimental
"""

varl = _mixin.item[
Expand All @@ -77,12 +82,17 @@ class Scene(
Each dataframe in a ``varl`` subcollection can be either a GeometryDataFrame or a
PointCloud.
Lifecycle: experimental
"""

@property
@abc.abstractmethod
def coordinate_space(self) -> Optional[coordinates.CoordinateSpace]:
"""Coordinate system for this scene."""
"""Coordinate system for this scene.
Lifecycle: experimental
"""
raise NotImplementedError()

@coordinate_space.setter
Expand Down Expand Up @@ -121,6 +131,8 @@ def register_geometry_dataframe(
Returns:
The registered geometry dataframe in write mode.
Lifecycle: experimental
"""
raise NotImplementedError()

Expand Down Expand Up @@ -151,6 +163,8 @@ def register_multiscale_image(
Returns:
The registered multiscale image in write mode.
Lifecycle: experimental
"""
raise NotImplementedError()

Expand Down Expand Up @@ -186,6 +200,8 @@ def register_point_cloud(
Returns:
The registered point cloud in write mode.
Lifecycle: experimental
"""
raise NotImplementedError()

Expand All @@ -200,6 +216,11 @@ def get_transformation_to_geometry_dataframe(
key: The name of the geometry dataframe.
subcollection: The name, or sequence of names, of the subcollection the
dataframe is stored in. Defaults to ``'obsl'``.
Returns:
Coordinate transform from the scene to the requested dataframe.
Lifecycle: experimental
"""
raise NotImplementedError()

Expand All @@ -221,6 +242,11 @@ def get_transformation_to_multiscale_image(
level: The level of the image to get the transformation to.
Defaults to ``None`` -- the transformation will be to the reference
level.
Returns:
Coordinate transform from the scene to the requested multiscale image.
Lifecycle: experimental
"""
raise NotImplementedError()

Expand All @@ -235,5 +261,10 @@ def get_transformation_to_point_cloud(
key: The name of the point cloud.
subcollection: The name, or sequence of names, of the subcollection the
point cloud is stored in. Defaults to ``'obsl'``.
Returns:
Coordinate transform from the scene to the requested point cloud.
Lifecycle: experimental
"""
raise NotImplementedError()

0 comments on commit 839871c

Please sign in to comment.