@@ -946,7 +946,7 @@ def __init__(
946946 atom1 : str ,
947947 atom2 : str ,
948948 length : float ,
949- translation : tuple [float , float , float ],
949+ translation : tuple [int , int , int ],
950950 num : int ,
951951 icohp : dict [Spin , float ],
952952 are_coops : bool = False ,
@@ -959,7 +959,7 @@ def __init__(
959959 atom1 (str): The first atom that contributes to the bond.
960960 atom2 (str): The second atom that contributes to the bond.
961961 length (float): Bond length.
962- translation (tuple[float, float, float ]): cell translation vector, e.g. (0, 0, 0).
962+ translation (tuple[int, int, int ]): cell translation vector, e.g. (0, 0, 0).
963963 num (int): The number of equivalent bonds.
964964 icohp (dict[Spin, float]): {Spin.up: ICOHP_up, Spin.down: ICOHP_down}
965965 are_coops (bool): Whether these are COOPs.
@@ -980,7 +980,6 @@ def __init__(
980980 self ._atom1 = atom1
981981 self ._atom2 = atom2
982982 self ._length = length
983- # TODO switch to integer translation in LOBSTER classes
984983 self ._translation = translation
985984 self ._num = num
986985 self ._icohp = icohp
@@ -1045,13 +1044,13 @@ def is_spin_polarized(self) -> bool:
10451044 return self ._is_spin_polarized
10461045
10471046 @property
1048- def translation (self ) -> tuple [float , float , float ]:
1047+ def translation (self ) -> tuple [int , int , int ]:
10491048 """
10501049 Returns the translation vector with respect to the origin cell
10511050 as defined in LOBSTER.
10521051
10531052 Returns:
1054- tuple[float, float, float ]
1053+ tuple[int, int, int ]
10551054 """
10561055 return self ._translation
10571056
@@ -1142,7 +1141,7 @@ def __init__(
11421141 list_atom1 : list [str ],
11431142 list_atom2 : list [str ],
11441143 list_length : list [float ],
1145- list_translation : list [tuple [float , float , float ]],
1144+ list_translation : list [tuple [int , int , int ]],
11461145 list_num : list [int ],
11471146 list_icohp : list [dict [Spin , float ]],
11481147 is_spin_polarized : bool ,
@@ -1156,7 +1155,7 @@ def __init__(
11561155 list_atom1 (list[str]): Atom names, e.g. "O1".
11571156 list_atom2 (list[str]): Atom names, e.g. "O1".
11581157 list_length (list[float]): Bond lengths in Angstrom.
1159- list_translation (list[tuple[float, float, float ]]): Cell translation vectors.
1158+ list_translation (list[tuple[int, int, int ]]): Cell translation vectors.
11601159 list_num (list[int]): Numbers of equivalent bonds, usually 1 starting from LOBSTER 3.0.0.
11611160 list_icohp (list[dict]): Dicts as {Spin.up: ICOHP_up, Spin.down: ICOHP_down}.
11621161 is_spin_polarized (bool): Whether the calculation is spin polarized.
0 commit comments