Dear @shwhyshwhy ,
These functions will appear in the next release. In the meantime, you could use
def get_cbm(self):
"""
Returns the conduction band maximum.
If partially occupied bands are detected, as in metals, then the function returns ``None``.
Returns:
float: conduction band maximum
"""
if self.ismetal():
return None
ev = self.eigenvalues
return np.min(ev[ev > self.efermi])
and get the bandgap with the difference of the two.