Skip to content

Commit

Permalink
added a comment after the change
Browse files Browse the repository at this point in the history
  • Loading branch information
gsuarezr committed Nov 14, 2024
1 parent 82747b3 commit 4862c7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qutip/core/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit 4862c7f

Please sign in to comment.