Skip to content

Commit

Permalink
Add base of Experiment type (no methods)
Browse files Browse the repository at this point in the history
  • Loading branch information
thetorpedodog committed Jan 12, 2023
1 parent 29b13bd commit fe5abfb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions python-spec/src/somacore/composed.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,20 @@ class Measurement(_wrap.CollectionProxy):
"""

soma_type: Final = "SOMAMeasurement"


class Experiment(_wrap.CollectionProxy):
"""A set of observations defined by a DataFrame, with measurements."""

obs = _wrap.item(data.DataFrame)
"""Primary observations on the observation axis.
The contents of the ``soma_joinid`` pseudo-column define the observation
index domain, i.e. ``obsid``. All observations for the experiment must be
defined here.
"""

ms = _wrap.item(base.Collection[Measurement])
"""A collection of named measurements."""

soma_type: Final = "SOMAExperiment"

0 comments on commit fe5abfb

Please sign in to comment.