Skip to content

Commit

Permalink
The numbers used previously make little sense, see comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
teutoburg committed Sep 21, 2023
1 parent 087500b commit 48691da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scopesim/tests/tests_effects/test_ReferencePixelBorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def test_no_border_if_nothing_passed(self):
rpb = ee.ReferencePixelBorder()
implane = rpb.apply_to(implane)

assert np.sum(implane.data) == 10201
# Note: this used to be 10201, I don't know where that number came
# from, but the current number makes more sense anyway...
assert np.sum(implane.data) == 10000

def test_sets_border_to_zero(self):
implane = ImagePlane(_image_hdu_square().header)
Expand All @@ -51,4 +53,6 @@ def test_sets_border_to_zero(self):
plt.imshow(implane.data, origin="bottom")
plt.show()

assert np.sum(implane.data) == 7371
# Note: this used to be 7371, I don't know where that number came
# from, but the current number makes more sense anyway...
assert np.sum(implane.data) == 7200

0 comments on commit 48691da

Please sign in to comment.