I want to report an issue about procar.py, and along with a solution for it.
I noticed that when PROCAR is generated, there will be no space between signed numbers sometimes. Since the infomation is extracted by relative column numbers from the end, the procar.py will raise exception in these situations:
ValueError: could not convert string to float: ':'
Dear Dr. Zheng,
I want to report an issue about procar.py, and along with a solution for it.
I noticed that when PROCAR is generated, there will be no space between signed numbers sometimes. Since the infomation is extracted by relative column numbers from the end, the procar.py will raise exception in these situations:
For example, when PROCAR says
the
line
in line 150 in procar.py will returninstead of
and therefore, procar.py will exec
float(':')
and thus will raise that ValueError.To fix this issue, I suggest to fill this space before parsing PROCAR data. In detail, add these
at line 142 in procar.py. And the issue will be no more.
Best Regards, Sun Sibai IOPCAS L02