Excise openff dependency from OpenMM testing#993
Merged
janosh merged 6 commits intomaterialsproject:mainfrom Sep 27, 2024
Merged
Excise openff dependency from OpenMM testing#993janosh merged 6 commits intomaterialsproject:mainfrom
janosh merged 6 commits intomaterialsproject:mainfrom
Conversation
Contributor
Author
|
@janosh would you mind taking a look? |
janosh
reviewed
Sep 26, 2024
src/atomate2/openmm/utils.py
Outdated
|
|
||
| from emmet.core.openmm import OpenMMTaskDocument | ||
|
|
||
| with suppress(ImportError): |
Member
There was a problem hiding this comment.
TYPE_CHECKING is always False at run time so no need to suppress errors here. also, suppress is quite slow compared to try/except so would usually opt for that
Contributor
Author
There was a problem hiding this comment.
I initially did try/except but it was caught by the linter. should I override then? nvm, understood ty
Member
There was a problem hiding this comment.
yes, we should ignore that ruff rule that recommends contextlib.suppress. bad rule imo
Co-authored-by: Janosh Riebesell <[email protected]>
Contributor
Author
|
All fixed, thanks for review @janosh |
auto-merge was automatically disabled
September 26, 2024 20:32
Head branch was pushed to by a user without write access
janosh
approved these changes
Sep 27, 2024
Member
janosh
left a comment
There was a problem hiding this comment.
looks great! 👍 thanks for the quick turnaround on #923 (comment) @orionarcher
hrushikesh-s
pushed a commit
to hrushikesh-s/atomate2
that referenced
this pull request
Nov 16, 2024
* Excise openff dependency from openmm testing * Remove commmented out code * Update src/atomate2/openmm/jobs/base.py Co-authored-by: Janosh Riebesell <[email protected]> * Respond to Yanosh PR and fix type of OpenMM Flow * Fix typo, lint * Add dataclass tag where needed --------- Co-authored-by: Janosh Riebesell <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR removes the openff dependency from the openmm test suite. This conflict originally arose in PR #923.