-
Notifications
You must be signed in to change notification settings - Fork 868
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
Fix Vasprun.get_potcars
search method; tweak fake POTCARs
#3587
Fix Vasprun.get_potcars
search method; tweak fake POTCARs
#3587
Conversation
pymatgen/io/vasp/inputs.py
Outdated
@@ -272,6 +272,7 @@ def from_file(cls, filename, check_for_potcar=True, read_velocities=True, **kwar | |||
[get_el_sp(n) for n in names] # ensure valid names | |||
except Exception: | |||
names = None | |||
print("shitfucker", names, dirname, filename) |
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.
my favorite line in this PR! 😄
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.
LOL I am losing it over here. Legit have tears in my eyes 🤣
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.
Ahhhhhh I'm so sorry! I was maybe working a bit too fast lol
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.
thanks @esoteric-ephemera for the quick fix!
The main change here is to correct the
update_potcar_spec
method ofVasprun
found by @Andrew-S-Rosen in issue #3586. SpecifyingVasprun("vasprun.xml")
would not find POTCARs, but specifying the leadingVasprun("./vasprun.xml")
would. That has been corrected.Other fixes:
io/test_outputs.TestVasprun.test_parse_potcar_cwd_relative
PotcarSingle.TITEL