You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems pymatgen returns incorrect valence configuration while parsing VASP POTCAR. Consider following code, where the POTCAR file corresponds to Hg (VASP-5.4, GGA, PBE, PAW, default):
Python version
3.10.16
Pymatgen version
2025.1.24
Operating system version
No response
Current behavior
It seems pymatgen returns incorrect valence configuration while parsing VASP POTCAR. Consider following code, where the POTCAR file corresponds to Hg (VASP-5.4, GGA, PBE, PAW, default):
It prints:
Expected Behavior
Previously, I tested
pymatgen==2023.8.10
, it used to return:The second line (valence) in POTCAR file is:
Also, there is this line:
So, I suppose the previous behavior (i.e,
[(6, 's', 2), (5, 'd', 10)]
, 12 valence electrons) was correct.Atomic configuration block:
Minimal example
Relevant files to reproduce this bug
Sorry, but you need access to VASP POTCAR files, which cannot be shared due to copyright issues.
The text was updated successfully, but these errors were encountered: