Skip to content

Commit

Permalink
More missed float_s
Browse files Browse the repository at this point in the history
  • Loading branch information
elinscott committed Jun 17, 2024
1 parent f84d0f5 commit 7b2a684
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/koopmans/calculators/_ui/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from numpy.typing import ArrayLike, NDArray


def crys_to_cart(vec: NDArray[np.float_], trmat: NDArray[np.float_], typ: int) -> NDArray[np.float_]:
def crys_to_cart(vec: NDArray[np.float64], trmat: NDArray[np.float64], typ: int) -> NDArray[np.float64]:
"""
Function to transform the numpy array vec (or a list/array of numpy arrays) from
crystal to cartesian (in alat units), or viceversa, as it is done in QE: typ=+1
Expand All @@ -33,7 +33,7 @@ def crys_to_cart(vec: NDArray[np.float_], trmat: NDArray[np.float_], typ: int) -
return vec_tr


def extract_hr(hr: NDArray[np.complex_], rvect: NDArray[np.int_], nr1: int, nr2: int, nr3: int) -> NDArray[np.complex_]:
def extract_hr(hr: NDArray[np.complex128], rvect: NDArray[np.int_], nr1: int, nr2: int, nr3: int) -> NDArray[np.complex128]:
"""
Function to select the Wannier Hamiltonian only on the primitive cell R-vectors.
The Hamiltonian coming from a Wannier90 calculation with k-points is indeed
Expand Down
2 changes: 1 addition & 1 deletion src/koopmans/calculators/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class ReturnsBandStructure(ABC):
"""

@abstractmethod
def eigenvalues_from_results(self) -> npt.NDArray[np.float_]:
def eigenvalues_from_results(self) -> npt.NDArray[np.float64]:
...

@abstractmethod
Expand Down

0 comments on commit 7b2a684

Please sign in to comment.