-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add gentle equilibration protocol as utility function #669
Conversation
Very nice 🎉 |
openmm.app.PDBxFile.writeFile(topology, positions, open(filename, "w"), keepIds=True) | ||
|
||
# Save the box vectors | ||
if save_box_vectors: |
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.
Are there cases where the box vectors are not needed? When creating a DCD trajectory in mdtraj, we need the box vectors along with the positions, so at least in that use case, we always need the box vectors.
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 are right, we should always be saving the box vectors in production-ready scenarios somehow. So far, this is mostly for practical purposes, such that we don't have to keep track of other files in tests.
I'm also considering that we want to eventually return openmm objects that already have this information included, I still don't know if that's going to be easily achievable but for now I'm going to leave it as is. The default behavior is to store the box vectors.
Looks good! Just added some minor suggestions. |
Co-authored-by: Ivy Zhang <[email protected]>
Co-authored-by: Ivy Zhang <[email protected]>
Description
Resolves #540
These changes add the function
gentle_equilibration
that can be imported usingfrom openmmtools.utils import gentle_equilibration
.These changes create a new utils module that should serve as a more organized API point where to locate all the utility functions.
Todos
Status
Changelog message