pyprocar icon indicating copy to clipboard operation
pyprocar copied to clipboard

AttributeError: module 'pyprocar' has no attribute 'bandgap'

Open l-r217 opened this issue 4 years ago • 3 comments

getting the same issue when trying getFermi.

Here is my simple code: import pyprocar

pyprocar.bandgap(procar="PROCAR", outcar="OUTCAR", code="vasp") pyprocar.getFermi(procar="PROCAR", outcar="OUTCAR", code="vasp")

As per pip: PyProcar 5.6.5

Thanks

l-r217 avatar Sep 09 '21 07:09 l-r217

getting the same issue when trying on QE results with code:

import pyprocar pyprocar.bandgap(code='qe')

Thanks! Version: 5.6.3

dario-massa avatar Sep 14 '21 17:09 dario-massa

I have figured out the issue, in the init.py file the import of the scriptBandGap.py file is commented out, if you remove the comment the script will work as expected.

nicholas-a-ansell avatar May 20 '22 10:05 nicholas-a-ansell

I have removed the comment "from .scriptBandGap import bandgap" but still facing the same issue.

kcbhamu avatar Dec 22 '22 15:12 kcbhamu