mirror of
https://github.com/triqs/dft_tools
synced 2024-10-31 11:13:46 +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
|
# FIXME: Reading from EIGENVAL is obsolete and should be
|
||||||
# removed completely.
|
# removed completely.
|
||||||
# if not vasp_data.eigenval.eigs is None:
|
if vasp_data.eigenval.eigs is not None:
|
||||||
if False:
|
|
||||||
print("eigvals from EIGENVAL")
|
print("eigvals from EIGENVAL")
|
||||||
self.eigvals = vasp_data.eigenval.eigs
|
self.eigvals = vasp_data.eigenval.eigs
|
||||||
self.ferw = vasp_data.eigenval.ferw.transpose((2, 0, 1))
|
self.ferw = vasp_data.eigenval.ferw.transpose((2, 0, 1))
|
||||||
|
self.efermi = vasp_data.doscar.efermi
|
||||||
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)"
|
|
||||||
else:
|
else:
|
||||||
print("eigvals from LOCPROJ")
|
print("eigvals from LOCPROJ")
|
||||||
self.eigvals = vasp_data.plocar.eigs
|
self.eigvals = vasp_data.plocar.eigs
|
||||||
|
@ -723,7 +723,7 @@ class h5Kpoints:
|
|||||||
self.ntet = kpoints['num_tetrahedra']
|
self.ntet = kpoints['num_tetrahedra']
|
||||||
self.vtet = kpoints['volume_weight_tetrahedra']
|
self.vtet = kpoints['volume_weight_tetrahedra']
|
||||||
self.itet = kpoints['coordinate_id_tetrahedra']
|
self.itet = kpoints['coordinate_id_tetrahedra']
|
||||||
except StopIteration as ValueError:
|
except KeyError:
|
||||||
print(" No tetrahedron data found in vasptriqs.h5. Skipping...")
|
print(" No tetrahedron data found in vasptriqs.h5. Skipping...")
|
||||||
self.ntet = 0
|
self.ntet = 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user