@@ -985,7 +985,7 @@ def icohpvalue(self, spin=Spin.up):
985985
986986 return self ._icohp [spin ]
987987
988- def icohpvalue_orbital (self , orbitals , spin = Spin .up ):
988+ def icohpvalue_orbital (self , orbitals , spin = Spin .up ) -> float :
989989 """
990990 Args:
991991 orbitals: List of Orbitals or "str(Orbital1)-str(Orbital2)"
@@ -1107,7 +1107,7 @@ def __str__(self) -> str:
11071107 joinstr .append (str (value ))
11081108 return "\n " .join (joinstr )
11091109
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 :
11111111 """Get an icohp value for a certain bond as indicated by the label (bond labels starting by "1" as in
11121112 ICOHPLIST/ICOOPLIST).
11131113
@@ -1118,9 +1118,9 @@ def get_icohp_by_label(self, label, summed_spin_channels=True, spin=Spin.up, orb
11181118 orbitals: List of Orbital or "str(Orbital1)-str(Orbital2)"
11191119
11201120 Returns:
1121- float describing ICOHP/ICOOP value
1121+ float: ICOHP/ICOOP value
11221122 """
1123- icohp_here = self ._icohplist [label ]
1123+ icohp_here : IcohpValue = self ._icohplist [label ]
11241124 if orbitals is None :
11251125 if summed_spin_channels :
11261126 return icohp_here .summed_icohp
@@ -1133,7 +1133,7 @@ def get_icohp_by_label(self, label, summed_spin_channels=True, spin=Spin.up, orb
11331133
11341134 return icohp_here .icohpvalue_orbital (spin = spin , orbitals = orbitals )
11351135
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 :
11371137 """Get the sum of several ICOHP values that are indicated by a list of labels
11381138 (labels of the bonds are the same as in ICOHPLIST/ICOOPLIST).
11391139
@@ -1144,7 +1144,7 @@ def get_summed_icohp_by_label_list(self, label_list, divisor=1.0, summed_spin_ch
11441144 spin: if summed_spin_channels is equal to False, this spin indicates which spin channel should be returned
11451145
11461146 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
11481148 """
11491149 sum_icohp = 0
11501150 for label in label_list :
0 commit comments