Skip to content

Commit

Permalink
I had forgotten pytest fixtures on some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gsuarezr committed Dec 11, 2023
1 parent 7cc95ec commit 67a7178
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qutip/solver/heom/bofin_baths.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def power_spectrum(self, w, beta=None):
return S

def correlation_function(self, t):
"""Computes the correlation function from
"""Computes the correlation function from
the exponents"""
corr = 0+0j
for exp in self.exponents:
Expand Down
2 changes: 1 addition & 1 deletion qutip/solver/heom/bofin_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _matsubara_coefficients(self):
return bath

def correlation_function(self, t):
"""Computes the correlation function from
"""Computes the correlation function from
the exponents"""
corr = 0+0j
for exp in self.exponents:
Expand Down
4 changes: 2 additions & 2 deletions qutip/tests/solver/heom/test_bofin_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ def test_matsubara_coefficients(self, correlation_fit):
np.imag(fittedbath),
atol=1e-5).all() # one order below final_rmse

def test_power_spectrum_approx(self):
def test_power_spectrum_approx(self, correlation_fit):
fc, ud, t, T = correlation_fit
w = np.linspace(0.1, 10, 1000)
S = fc.power_spectrum_approx(w)
S2 = ud.power_spectrum(w, 1/T)
np.isclose(S, S2, atol=1e-5).all()

def test_spectral_density_approx(self):
def test_spectral_density_approx(self, correlation_fit):
fc, ud, t, T = correlation_fit
w = np.linspace(0.1, 10, 1000)
J = fc.spectral_density_approx(w, 1/T)
Expand Down

0 comments on commit 67a7178

Please sign in to comment.