Skip to content

Conversation

@ajhoffman1229
Copy link
Contributor

This pull request addresses (or partly addresses) #25 , where recent changes to the ASE package was breaking the calls to Dynamics.run() in many of our MD calculators in NFF. I added a function that catches the ASE version and calls Dynamics.run() appropriately depending on the user's version of ASE. Hopefully, this addition should ease the transition from v. <3.22.0 to >=3.23.0. I also added a test that checks that dynamics run correctly (to produce the output trajectory) and within a reasonable amount of time (i.e., does not run for the now-default 100 million steps in the ASE calculator and instead runs for the 40 steps that are requested).

ajh1229 added 2 commits April 18, 2025 21:02
- add function that identifies the ASE version of the user and calls
`Dynamics.run()` appropriately based on that version
- update all calls to `Dynamics.run()` within the NFF `nvt.py` file
The test checks that the dynamics run properly (creating the output
files correctly) and within a short period of time (to ensure that the
default 100-million steps that the ASE dynamics uses by default does not
occur).
recisic
recisic previously approved these changes Apr 19, 2025
Copy link
Contributor

@xiaochendu xiaochendu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ajhoffman1229
Copy link
Contributor Author

I just removed the references to htvs; the code remains the same but GitHub is asking for a PR approval before merging.

@ajhoffman1229 ajhoffman1229 merged commit eb7d0b0 into master Apr 21, 2025
1 check passed
@recisic recisic deleted the ase_dyn_update branch April 21, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants