From 4862c7f3486b2defc95ab82ee8ae968639af54f5 Mon Sep 17 00:00:00 2001 From: mcditooss Date: Fri, 15 Nov 2024 00:23:06 +0100 Subject: [PATCH] added a comment after the change --- qutip/core/environment.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutip/core/environment.py b/qutip/core/environment.py index 6e32fb1e67..a27aee2b61 100644 --- a/qutip/core/environment.py +++ b/qutip/core/environment.py @@ -1339,7 +1339,9 @@ def _matsubara_params(self, Nk): Om = np.sqrt(self.w0**2 - (self.gamma / 2)**2) Gamma = self.gamma / 2 - z = float('inf') if self.T == 0 else (Om + 1j * Gamma) / (2*self.T) + z = (np.inf * (1 + 1j) 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)) * (1 / np.tanh(z)),