Skip to content

Commit

Permalink
remove debugging prints
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Sep 4, 2024
1 parent 812dcac commit 6ada51c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion specutils/fitting/fitmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ def _fit_lines(spectrum, model, fitter=fitting.LevMarLSQFitter(calc_uncertaintie
# In this case the window defines the area around the center of each model
window_indices = None
if window is not None and isinstance(window, u.Quantity):
print("Got quantity window")
if isinstance(window.value, (float, int)):
center = model.mean
window_indices = np.nonzero((dispersion >= center-window) &
Expand Down
2 changes: 1 addition & 1 deletion specutils/tests/test_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def test_double_peak_fit_separate_window():
2.27480254e-037, 1.54723641e-016, 3.40669622e-004, 2.42814100e+000,
5.60245215e-005, 4.18452504e-018, 1.01176103e-039, 7.91905729e-070,
2.00647052e-108, 1.64571961e-155, 4.36960988e-211, 3.75572034e-275])
print(yr_double_fit.value[::10])

assert np.allclose(yr_double_fit.value[::10], yr_double_fit_expected, atol=1e-5)


Expand Down

0 comments on commit 6ada51c

Please sign in to comment.