-
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
Breaking change in "POTCAR" info with recent changes to VaspInput
#3860
Comments
VaspInput
VaspInput
thanks for reporting! pretty sure this was not intentional but @esoteric-ephemera would know best. always good to learn where we need to add more tests :) |
It seems here is the cause of the breaking change for the key name, and here ( I'm not opposed to the change. Just wanted to make sure it was intentional. |
It is intentional - I had to implement this change to get VaspInputSet to write a |
did you add a test for the new behavior? |
@janosh: Yes or at least modified an existing test Both ways of doing it are fine by me, and it's an oversight on my part to not warn about this breaking things. Should I tune this a bit? |
personally, i think it's fine. i just added the |
Thanks for clarifying, @esoteric-ephemera! Feel free to close, @janosh, when you feel comfortable doing so. |
Python version
3.11
Pymatgen version
2024.5.31
Operating system version
No response
Current behavior
It seems there was a recent breaking change to the
VaspInput
class that I didn't see communicated. I wanted to report it here to make sure it wasn't a bug. Feel free to close if it's intended.Take the following example:
In pymatgen < 2024.5.31, we get:
However, in pymatgen >=2024.5.31, we get
Note how doing
vasp_input["POTCAR"]
will cause a crash in the newer version. In its place isvasp_input["POTCAR.spec"]
, which also is not formatted the same way.Tagging @esoteric-ephemera, @janosh for comment.
The text was updated successfully, but these errors were encountered: