aiida-vasp / parsevasp

A general parser for VASP
MIT License
13 stars 13 forks source link

Deprecation warning #128

Closed espenfl closed 1 year ago

espenfl commented 1 year ago

We now get this parsevasp/vasprun.py:2742: DeprecationWarning: string or file could not be read to its end due to unmatched data; this will raise a ValueError in the future. data[index] = np.fromstring(element.text, sep=' ') which needs to be fixed.

espenfl commented 1 year ago

In fact, we already deal with this here: https://github.com/aiida-vasp/parsevasp/blob/fe52da5d1582704fe773f6e1f1662634a71c9219/parsevasp/vasprun.py#L2743. This should also work when they remove the DeprecationWarning and make it a hard exception.