-
Notifications
You must be signed in to change notification settings - Fork 865
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
Updates for Vasprun with MD simulations #3489
Conversation
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.
The changes sound good to me! Thanks a lot
tests/files/vasprun.xml.md
Outdated
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.
Can you compress?
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.
Actually, there's already tests/files/vasprun.xml.ml_md
. Is that file incompatible with this test?
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.
In principle the ml_md file will not cover the case of a simple MD, so for example it should miss this line:
pymatgen/pymatgen/io/vasp/outputs.py
Line 712 in dc2f6ed
return self.nionic_steps |
I can remove it if you prefer saving space in the repository.
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.
If the new file covers a superset of test cases, you can remove the old one and plug in the path to the new one instead (only 1 test needs updating).
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.
no, the new one will not cover the ML MD, that produces the md_data attribute. The data are partially overlapping, so will not cover the same set of lines. If I need to remove one, I think that removing the vasprun.xml.md
would be better.
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.
no need. where you load the file
vasp_run = Vasprun(f"{TEST_FILES_DIR}/vasprun.xml.md.gz")
could you add a brief comment what differentiates this file from vasprun.xml.ml_md
to leave a paper trail of our discussion in the code.
Summary
I propose a few minor changes in the
Vasprun
object when parsing MD simulations and especially those produced with the ML option.converged_ionic
property was False for an MD simulation. But the check did not seems reasonable for an MDionic_steps