romerogroup / pyprocar

A Python library for electronic structure pre/post-processing
GNU General Public License v3.0
165 stars 72 forks source link

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

Open l-r217 opened 2 years ago

l-r217 commented 2 years ago

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

dario-massa commented 2 years ago

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

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

Thanks! Version: 5.6.3

nicholas-a-ansell commented 2 years ago

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.

kcbhamu commented 1 year ago

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