-
Notifications
You must be signed in to change notification settings - Fork 8
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
Added support for NonTransformation
s
#270
Conversation
- `network_tyk2` now includes NonTransformations on all ChemicalSystems - Added a helper method to `integration/conftest.py` to get the first instance of a Transformation or a NonTransformation - New fixture `nontransformation` - Updated Cypher queries relating to Transformations to `|` with NonTransformations
* Transformations are now sorted by their GufeKeys, and filter out NonTransformations when setting up n4js_preloaded actioned tasks. * `get_edge_type` helper method in integration/conftest.py also sorts by GufeKey so we know we are getting the same ordering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @ianmkenney! Just one note; merge when satisfied!
@@ -888,7 +888,10 @@ def query_transformations(self, *, name=None, key=None, scope: Scope = Scope()): | |||
"""Query for `Transformation`\s matching given attributes.""" | |||
additional = {"name": name} | |||
return self._query( | |||
qualname="Transformation", additional=additional, key=key, scope=scope | |||
qualname="Transformation|NonTransformation", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brilliant!
alchemiscale/validators.py
Outdated
@@ -4,7 +4,7 @@ | |||
|
|||
""" | |||
|
|||
from gufe import AlchemicalNetwork, Transformation | |||
from gufe import AlchemicalNetwork, Transformation, NonTransformation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can drop this NonTransformation
import; unused.
This PR closes #110. The default
network_tyk2
fixture now includesNonTransformation
s on allChemicalSystem
s. All Cypher queries involvingTransformation
s now also includeNonTransformation
s. Self loop validation now only runs when the transformation is of typeTransformation
.