Skip to content

Commit 6b545c9

Browse files
committed
Make ellipse_model simulated data test threshold much stricter
1 parent 551fa80 commit 6b545c9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

photutils/isophote/tests/test_model.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def test_model():
4444
assert data.shape == model.shape
4545

4646
residual = data - model
47-
assert np.mean(residual) <= 5.0
48-
assert np.mean(residual) >= -5.0
47+
assert np.abs(np.mean(residual)) <= 5.0
4948

5049

5150
def test_model_simulated_data():
@@ -67,8 +66,8 @@ def test_model_simulated_data():
6766
assert data.shape == model.shape
6867

6968
residual = data - model
70-
assert np.mean(residual) <= 5.0
71-
assert np.mean(residual) >= -5.0
69+
assert np.abs(np.mean(residual)) <= 0.01
70+
assert np.abs(np.median(residual)) <= 0.01
7271

7372

7473
def test_model_minimum_radius():

0 commit comments

Comments
 (0)