vasppy icon indicating copy to clipboard operation
vasppy copied to clipboard

procar.py suggestion

Open mwistey opened this issue 5 years ago • 1 comments

Thanks for the python interface!

In procar.py, I would suggest replacing this: regex = re.compile( 'k-point\s+(\d+)\s*:\s+([- ][01].\d{8})([- ][01].\d{8})([- ][01].\d{8})\s+weight = ([01].\d+)' )
...with this... regex = re.compile( 'k-point\s+(\d+)\s*:\s+([- ][01].\d+)([- ][01].\d+)([- ][01].\d+)\s+weight = (-[01].\d+)' )

I've run into one modified version of VASP that has an extra space after the "weight =". This way it's a little less fragile.

  • Mark

mwistey avatar Dec 31 '19 12:12 mwistey

Thanks for the suggestion. Can you provide an example of the modified PROCAR format you would like to parse?

bjmorgan avatar Dec 31 '19 15:12 bjmorgan