@@ -985,7 +985,7 @@ def icohpvalue(self, spin=Spin.up):
985
985
986
986
return self ._icohp [spin ]
987
987
988
- def icohpvalue_orbital (self , orbitals , spin = Spin .up ):
988
+ def icohpvalue_orbital (self , orbitals , spin = Spin .up ) -> float :
989
989
"""
990
990
Args:
991
991
orbitals: List of Orbitals or "str(Orbital1)-str(Orbital2)"
@@ -1107,7 +1107,7 @@ def __str__(self) -> str:
1107
1107
joinstr .append (str (value ))
1108
1108
return "\n " .join (joinstr )
1109
1109
1110
- def get_icohp_by_label (self , label , summed_spin_channels = True , spin = Spin .up , orbitals = None ):
1110
+ def get_icohp_by_label (self , label , summed_spin_channels = True , spin = Spin .up , orbitals = None ) -> float :
1111
1111
"""Get an icohp value for a certain bond as indicated by the label (bond labels starting by "1" as in
1112
1112
ICOHPLIST/ICOOPLIST).
1113
1113
@@ -1118,9 +1118,9 @@ def get_icohp_by_label(self, label, summed_spin_channels=True, spin=Spin.up, orb
1118
1118
orbitals: List of Orbital or "str(Orbital1)-str(Orbital2)"
1119
1119
1120
1120
Returns:
1121
- float describing ICOHP/ICOOP value
1121
+ float: ICOHP/ICOOP value
1122
1122
"""
1123
- icohp_here = self ._icohplist [label ]
1123
+ icohp_here : IcohpValue = self ._icohplist [label ]
1124
1124
if orbitals is None :
1125
1125
if summed_spin_channels :
1126
1126
return icohp_here .summed_icohp
@@ -1133,7 +1133,7 @@ def get_icohp_by_label(self, label, summed_spin_channels=True, spin=Spin.up, orb
1133
1133
1134
1134
return icohp_here .icohpvalue_orbital (spin = spin , orbitals = orbitals )
1135
1135
1136
- def get_summed_icohp_by_label_list (self , label_list , divisor = 1.0 , summed_spin_channels = True , spin = Spin .up ):
1136
+ def get_summed_icohp_by_label_list (self , label_list , divisor = 1.0 , summed_spin_channels = True , spin = Spin .up ) -> float :
1137
1137
"""Get the sum of several ICOHP values that are indicated by a list of labels
1138
1138
(labels of the bonds are the same as in ICOHPLIST/ICOOPLIST).
1139
1139
@@ -1144,7 +1144,7 @@ def get_summed_icohp_by_label_list(self, label_list, divisor=1.0, summed_spin_ch
1144
1144
spin: if summed_spin_channels is equal to False, this spin indicates which spin channel should be returned
1145
1145
1146
1146
Returns:
1147
- float that is a sum of all ICOHPs/ICOOPs as indicated with label_list
1147
+ float: sum of all ICOHPs/ICOOPs as indicated with label_list
1148
1148
"""
1149
1149
sum_icohp = 0
1150
1150
for label in label_list :
0 commit comments