We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7433231 + 19be40f commit ff40d39Copy full SHA for ff40d39
src/aiidalab_qe_vibroscopy/utils/phonons/result.py
@@ -92,8 +92,13 @@ def export_phononworkchain_data(node, fermi_energy=None):
92
)
93
94
for atom_contribution in index_dict[atom][:]:
95
- dos_dict[atom] += pdos.get_y()[atom_contribution][1]
96
- 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...
97
+ # for Si2, actually, two are provided...
98
+ break
99
+ else:
100
+ dos_dict[atom] += pdos.get_y()[atom_contribution][1]
101
+ dos_dict["total_dos"] += pdos.get_y()[atom_contribution][1]
102
103
dos = []
104
# The total dos parsed
0 commit comments