Skip to content

Commit

Permalink
Fix: use line width error during test
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofle committed Nov 4, 2024
1 parent 674ad0d commit 91c3099
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies = [
"numpy",
"pandas",
"scipy",
"specutils>1.16,<1.18",
"specutils>1.16",
"httpx",
"rich",
"tenacity",
Expand Down
4 changes: 3 additions & 1 deletion src/dysh/spectra/tests/test_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,9 @@ def test_smooth_multi(self):

# Check fitter first.
g_fit = fit_gauss(self.ss)
assert g_fit.stddev.value * 2.35482 == pytest.approx(abs(self.ss.meta["CDELT1"]) * self.ss.meta["FWHM"])
assert g_fit.stddev.value * 2.35482 == pytest.approx(
abs(self.ss.meta["CDELT1"]) * self.ss.meta["FWHM"], g_fit.stddev.std * 2.35482
)

# Now smooth the same Spectrum multiple times.
sss = self.ss._copy()
Expand Down

0 comments on commit 91c3099

Please sign in to comment.