-
Notifications
You must be signed in to change notification settings - Fork 78
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 Forcefield.apply assert_bonds #199
Conversation
It looks like that comment says it gets picked up in the MD engine later on. Arguably this is a thing for foyer to spot. Looks like this change breaks an existing test, I think you all can push to this branch to fix |
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.
Thanks @richardjgowers! So the reason this wasn't added in #155 was because (at least at that time) if parameters were not provided in the Foyer XML for all bonds, an error was raised by OpenMM within createSystem
. Can you add a unit test for what you've added here? My guess is that things will break before reaching the _error_or_warn
line you've added.
@summeraz I've added a test, it's possible to do |
Why did this PR get merged in with a failing test?
|
Oops, that was sloppy. We thought it was one of the tests that can fail for silly reasons, but on further inspection it's actually something we need to change. Thanks for catching this |
This reverts commit 63083b1.
No worries! I was just surprised that while I was working on another PR, that test started to fail. It looks like this PR was really needed, since one of the tests didn't have all the bonds defined. |
Yeah, of all the things that can happen with failing units tests, finding and fixing an unrelated issue is among the better outcomes |
No description provided.