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

ABC submodule with Labelled mixin #17

Merged
merged 5 commits into from
Mar 18, 2025
Merged

ABC submodule with Labelled mixin #17

merged 5 commits into from
Mar 18, 2025

Conversation

willGraham01
Copy link
Collaborator

@willGraham01 willGraham01 commented Mar 17, 2025

Resolves #11

Adds a (hidden) abstract base class submodule, which for now just includes a Labelled mix-in class that provides a label property, which accesses a private _label attribute.

Graph, (Root)DistributionNode now use this mix-in rather than redefining the property, and Distribution and DistributionFamily now use this mixin.

Mainly opening this PR since I want to also create an abstract base class for objects that need to be backend-agnostic, as that's currently causing me headaches on this branch. Figured I might as well slot this one in at the same time (with the same file/folder structure to avoid later conflicts).

@willGraham01 willGraham01 requested a review from mscroggs March 17, 2025 15:31
@willGraham01 willGraham01 merged commit 4796d28 into main Mar 18, 2025
5 checks passed
@willGraham01 willGraham01 deleted the wgraham/abc-module branch March 18, 2025 14:03
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.

Abstract class for labelling
2 participants