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

Make Transformation and NonTransformation subclass TransformationBase #311

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dotsdl
Copy link
Member

@dotsdl dotsdl commented Apr 25, 2024

In some cases it can be awkward for NonTransformation to be a subclass of Transformation, such as in alchemiscale, for cases where NonTransformation should be handled very differently.

Switching to a shared, abstract base class for Transformation and NonTransformation simplifies this.

…nBase`

In some cases it can be awkward for `NonTransformation` to be a subclass
of `Transformation`, such as in `alchemiscale`, for cases where
`NonTransformation` should be handled very differently. Switching to a
shared, abstract base class for `Transformation` and `NonTransformation`
simplifies this.
@pep8speaks
Copy link

pep8speaks commented Apr 25, 2024

Hello @dotsdl! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 75:80: E501 line too long (80 > 79 characters)
Line 283:80: E501 line too long (80 > 79 characters)

Comment last updated at 2024-04-25 06:03:17 UTC

Copy link
Member

@IAlibay IAlibay left a comment

Choose a reason for hiding this comment

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

Thanks for opening this @dotsdl - as a first initial triage, could you possibly add in a rever rst file with a short summary of this update and any expected API breaks?

@dotsdl
Copy link
Member Author

dotsdl commented Apr 25, 2024

I can do that, no problem @IAlibay! I also need to fix the broken tests yet as well.

@dotsdl
Copy link
Member Author

dotsdl commented Apr 25, 2024

To be clear, this isn't blocking anything on alchemiscale; it's just something @ianmkenney and I noticed while working on this one: OpenFreeEnergy/alchemiscale#270

@IAlibay
Copy link
Member

IAlibay commented Jun 29, 2024

@dotsdl possibly a crazy question - does this technically change the gufe keys for transformation objects? I can't remember if it captures the parent class signatures

(partly asking because of the test failures)

@IAlibay
Copy link
Member

IAlibay commented Jun 29, 2024

The follow up question I have is if we need a 1.x gufe policy on key stability?

@dotsdl dotsdl self-assigned this Oct 4, 2024
@dotsdl
Copy link
Member Author

dotsdl commented Oct 4, 2024

Will pursue a review on this from Alyssa when she starts.

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.

3 participants