Skip to content

Commit

Permalink
Modified test_tracing.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpparvi committed Dec 10, 2024
1 parent 7b64a0a commit 4d8ece7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specreduce/tests/test_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def test_fit_trace_fully_masked_cols(self, mask_treatment):
@pytest.mark.parametrize("peak_method,expected",
[("max", [5., 3., 5., 5., 7., 5.,
np.nan, 5., 5., 5., 2., 5.]),
("gaussian", [5., 2.10936004, 5., 5., 7.80744334,
("gaussian", [5., 1.696159, 5., 5., 7.80744334,
5., np.nan, 5., 5., 5., 1.28216332, 5.]),
("centroid", [4.27108332, 2.24060342, 4.27108332,
4.27108332, 6.66827608, 4.27108332,
Expand Down Expand Up @@ -409,7 +409,7 @@ def test_mask_treatment_filter(self, peak_method, expected):

# check that final fit to all bins, accouting for fully-masked bins,
# matches the trace
fitter = fitting.LevMarLSQFitter()
fitter = fitting.LMLSQFitter()
mask = np.isfinite(y_bins)
all_bin_fit = fitter(trace.trace_model, x_bins[mask], y_bins[mask])
all_bin_fit = all_bin_fit((np.arange(12)))
Expand Down

0 comments on commit 4d8ece7

Please sign in to comment.