Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Feb 20, 2024
1 parent ca99d3e commit ffae43d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ Bug Fixes
were set to the number of rows in the image, biasing the final fit to all bin
peaks. Previously for Gaussian, the entire fit failed. [#205, #206]

- Fixed input of `traces` in `Background`. Added a condition to 'FlatTrace' that
trace position must be a positive number. [#211]

Other changes
^^^^^^^^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion specreduce/tests/test_background.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_trace_inputs(mk_test_img_raw):
assert isinstance(background.traces[0], FlatTrace)
assert background.traces[0].trace_pos == 10.

traces = [10., 12]
traces = [10., 15]
background = Background(image, traces, width=5)
for i, trace_pos in enumerate(traces):
assert background.traces[i].trace_pos == trace_pos

0 comments on commit ffae43d

Please sign in to comment.