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
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
The text was updated successfully, but these errors were encountered: