Skip to content

Commit

Permalink
This fixes #96
Browse files Browse the repository at this point in the history
  • Loading branch information
mikibonacci committed Oct 9, 2024
1 parent 7e0246d commit b9019cc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/aiidalab_qe_vibroscopy/utils/phonons/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,13 @@ def export_phononworkchain_data(node, fermi_energy=None):
)

for atom_contribution in index_dict[atom][:]:
dos_dict[atom] += pdos.get_y()[atom_contribution][1]
dos_dict["total_dos"] += pdos.get_y()[atom_contribution][1]
if len(pdos.get_y()) <= atom_contribution:
# I need this as for Al4, only one pdos tuple is provided...
# for Si2, actually, two are provided...
break
else:
dos_dict[atom] += pdos.get_y()[atom_contribution][1]
dos_dict["total_dos"] += pdos.get_y()[atom_contribution][1]

dos = []
# The total dos parsed
Expand Down

0 comments on commit b9019cc

Please sign in to comment.