-
Notifications
You must be signed in to change notification settings - Fork 120
ASE MD NPT bug fixes + housekeeping #1255
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
Conversation
@esoteric-ephemera the openff tests were already failing before, btw |
@JaGeo part of the openff issue was related to this bug in pymatgen (the mass of Hydrogen was in fact the mass of Tritium) Solution for more general robustness is to pass the atomic masses as an optional kwarg, as in the tests |
Thanks @esoteric-ephemera !! |
I did test this pull request and found out that it is not working as expected. Here are my fixes:
also:
Thanks! |
isinstance(self.dynamics, DynamicsPresets) | ||
and DynamicsPresets(self.dynamics) == DynamicsPresets.npt_berendsen | ||
) or ( | ||
isinstance(self.dynamics, type) |
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.
it never enters this if. This fixes it:
isinstance(self.dynamics, str)
#and issubclass(self.dynamics, MolecularDynamics)
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.
@fraricci do you want to make a PR and add a small test if possible? Happy to merge. I trust that you checked it carefully.
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.
Ah OK I see - yeah there is extra logic needed for this because the user can either specify self.dynamics
as a str
or as a MolecularDynamics
class. The changes I made should work for the latter case, but not the former like you said
I can roll this into the NEB PR I have open since that's ready to go
Ensure that the
AseMDMaker
does not overwrite user-specified kwargsMatPesStaticFlowMaker
should not have PBE+U step enabled by default #1249 by setting the default MatPES flow to align with the paper