Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet authored Nov 10, 2023
1 parent 2dab349 commit 5e00f7a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions reduction/lr_reduction/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@
from lmfit.models import LinearModel


def determine_background_method(peak, bck):
"""
Check whether we have a background range defined by two pixels or four.
"""
if len(bck) == 2 or (len(bck) == 4 and bck[2] == 0 and bck[3] == 0):
return side_background()
elif not len(bck) == 4:
raise ValueError("Background ROI should be of length 2 or 4")

return functional_background(peak, bck)


def find_ranges_without_overlap(r1, r2):
"""
Returns the part of r1 that does not contain r2
Expand Down

0 comments on commit 5e00f7a

Please sign in to comment.