Skip to content

Commit

Permalink
update background subtraction test with clip
Browse files Browse the repository at this point in the history
  • Loading branch information
roussel-ryan committed Dec 2, 2024
1 parent 0f9099d commit d30acfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_tests/lcls_tools/common/image/test_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_subtract_background(self):
image_processor = ImageProcessor(background_image=background_image)
image = image_processor.subtract_background(self.image)
image = image
background = (self.image - 1)
background = np.clip(self.image - 1, 0, None)
np.testing.assert_array_equal(
image, background,
err_msg=("expected image to equal background "
Expand All @@ -67,7 +67,7 @@ def test_subtract_background(self):
image_processor = ImageProcessor(threshold=1)
image = image_processor.subtract_background(self.image)
image = image
background = (self.image - 1)
background = np.clip(self.image - 1, 0, None)
np.testing.assert_array_equal(
image, background,
err_msg=("expected image to equal background "
Expand Down

0 comments on commit d30acfe

Please sign in to comment.