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
Band structure fails to load if vasprun is gzipped and KPOINTS isn't #1236
Comments
Not sure why this is assigned to me (pretty sure I had no part in the original code)? But anyway, I am not sure what os.path.pardir refers to in the above example. I would suggest to just use monty zpath (https://pythonhosted.org/monty/_modules/monty/os/path.html) Maybe something like this:
It's a bit convoluted but should work (?) |
nevermind just understood the os.path.pardir as ".." - but anyway would probably suggest the code snippet above if it works |
@ajjackson would you be happy to submit a PR to fix using monty's |
Can put that together, sure. This seems to be exactly what |
Many thanks :) |
Fixed in in #1272 |
System
Summary
BSVasprun
class to import a band structure calculationExample code
Error message
Suggested solution
Presumably the "replace" expression is intended to maintain the first part of the path (i.e. the parent directory). However, if
self.filename
was /some/path/to/vasprun.xml.gz then thereplace
operation will leave /some/path/to/KPOINTS.gz.The text was updated successfully, but these errors were encountered: