mirror of
https://github.com/triqs/dft_tools
synced 2025-01-03 10:05:49 +01:00
fix read error for tetrahedron data and eigs properties
This commit is contained in:
parent
6f47a72c4b
commit
26b355ea40
@ -90,17 +90,11 @@ class ElectronicStructure:
|
||||
|
||||
# FIXME: Reading from EIGENVAL is obsolete and should be
|
||||
# removed completely.
|
||||
# if not vasp_data.eigenval.eigs is None:
|
||||
if False:
|
||||
if vasp_data.eigenval.eigs is not None:
|
||||
print("eigvals from EIGENVAL")
|
||||
self.eigvals = vasp_data.eigenval.eigs
|
||||
self.ferw = vasp_data.eigenval.ferw.transpose((2, 0, 1))
|
||||
|
||||
nk_eig = vasp_data.eigenval.nktot
|
||||
assert nk_eig == self.nktot, "PLOCAR is inconsistent with EIGENVAL (number of k-points)"
|
||||
|
||||
# Check that the number of band is the same in PROJCAR and EIGENVAL
|
||||
assert nb_plo == self.nband, "PLOCAR is inconsistent with EIGENVAL (number of bands)"
|
||||
self.efermi = vasp_data.doscar.efermi
|
||||
else:
|
||||
print("eigvals from LOCPROJ")
|
||||
self.eigvals = vasp_data.plocar.eigs
|
||||
|
@ -723,7 +723,7 @@ class h5Kpoints:
|
||||
self.ntet = kpoints['num_tetrahedra']
|
||||
self.vtet = kpoints['volume_weight_tetrahedra']
|
||||
self.itet = kpoints['coordinate_id_tetrahedra']
|
||||
except StopIteration as ValueError:
|
||||
except KeyError:
|
||||
print(" No tetrahedron data found in vasptriqs.h5. Skipping...")
|
||||
self.ntet = 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user