Skip to content

Commit

Permalink
restore change so test do not fail on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
gsuarezr committed Nov 15, 2024
1 parent 4862c7f commit 5845cd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qutip/core/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5845cd2

Please sign in to comment.