Skip to content

Commit

Permalink
Test for array equality
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybradley committed Nov 14, 2024
1 parent c0e1806 commit 5c7a2e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions romancal/source_catalog/tests/test_source_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pytest
from astropy.modeling.models import Gaussian2D
from astropy.table import Table
from numpy.testing import assert_allclose
from numpy.testing import assert_equal
from photutils.segmentation import SegmentationImage
from roman_datamodels import datamodels as rdm
from roman_datamodels.datamodels import (
Expand Down Expand Up @@ -300,8 +300,8 @@ def test_l2_input_model_unchanged(image_model, tmp_path):
save_results=False,
)

assert_allclose(original_data, image_model.data, atol=5.0e-5)
assert_allclose(original_err, image_model.err, atol=5.0e-5)
assert_equal(original_data, image_model.data)
assert_equal(original_err, image_model.err)


@pytest.mark.webbpsf
Expand All @@ -324,8 +324,8 @@ def test_l3_input_model_unchanged(mosaic_model, tmp_path):
save_results=False,
)

assert_allclose(original_data, mosaic_model.data, atol=5.0e-5)
assert_allclose(original_err, mosaic_model.err, atol=5.0e-5)
assert_equal(original_data, mosaic_model.data)
assert_equal(original_err, mosaic_model.err)


@pytest.mark.webbpsf
Expand Down

0 comments on commit 5c7a2e2

Please sign in to comment.