Skip to content

Convert abstract base class to protocols#267

Merged
jp-dark merged 5 commits into
mainfrom
dark/abc-to-protocol
Mar 2, 2026
Merged

Convert abstract base class to protocols#267
jp-dark merged 5 commits into
mainfrom
dark/abc-to-protocol

Conversation

@jp-dark

@jp-dark jp-dark commented Feb 24, 2026

Copy link
Copy Markdown
Collaborator

This is a major re-write of the python specification. This change converts the abstract base classes defined in somacore and converts them to protocols. This allows more flexibility and fewer dependencies for downstream libraries that implement the SOMA interface.

@aaronwolen aaronwolen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a couple questions along the way, but otherwise looks great.

Are there any dependencies we can drop now that much of the implementation code has been removed?

Comment thread python-spec/src/somacore/experiment.py
Comment thread python-spec/src/somacore/scene.py
Comment thread python-spec/src/somacore/data.py Outdated
Comment thread python-spec/src/somacore/coordinates.py Outdated
Comment thread python-spec/src/somacore/data.py
Comment thread python-spec/src/somacore/measurement.py Outdated
@jp-dark jp-dark force-pushed the dark/abc-to-protocol branch from 45fdd1e to 3e5a62b Compare March 2, 2026 15:55
@jp-dark jp-dark merged commit 60f585a into main Mar 2, 2026
7 checks passed
@jp-dark jp-dark deleted the dark/abc-to-protocol branch March 2, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants