From 5845cd23dd03e9c957d357ee4cc2c92e7369442d Mon Sep 17 00:00:00 2001 From: mcditooss Date: Fri, 15 Nov 2024 09:23:19 +0100 Subject: [PATCH] restore change so test do not fail on macOS --- qutip/core/environment.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qutip/core/environment.py b/qutip/core/environment.py index a27aee2b61..4dd41786b5 100644 --- a/qutip/core/environment.py +++ b/qutip/core/environment.py @@ -1339,8 +1339,7 @@ def _matsubara_params(self, Nk): Om = np.sqrt(self.w0**2 - (self.gamma / 2)**2) Gamma = self.gamma / 2 - z = (np.inf * (1 + 1j) if self.T == 0 - else (Om + 1j * Gamma) / (2*self.T)) + z = float('inf') if self.T == 0 else (Om + 1j * Gamma) / (2*self.T) # we set the argument of the hyperbolic tangent to infinity if T=0 ck_real = ([ (self.lam**2 / (4 * Om))