From 7b2a684a30649710b6a5c3cce075d3100f2cb194 Mon Sep 17 00:00:00 2001 From: Edward Linscott Date: Mon, 17 Jun 2024 13:23:29 +0200 Subject: [PATCH] More missed float_s --- src/koopmans/calculators/_ui/_utils.py | 4 ++-- src/koopmans/calculators/_utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/koopmans/calculators/_ui/_utils.py b/src/koopmans/calculators/_ui/_utils.py index 66eaf1b2d..6e5e36dd1 100644 --- a/src/koopmans/calculators/_ui/_utils.py +++ b/src/koopmans/calculators/_ui/_utils.py @@ -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 @@ -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 diff --git a/src/koopmans/calculators/_utils.py b/src/koopmans/calculators/_utils.py index ced8a8aac..b41b60aaf 100644 --- a/src/koopmans/calculators/_utils.py +++ b/src/koopmans/calculators/_utils.py @@ -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