Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Aug 24, 2022
1 parent a91854b commit 31c4d6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jdaviz/configs/imviz/tests/test_simple_aper_phot.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_plugin_wcs_dithered(self):
'data_label', 'subset_label', 'timestamp']
assert_array_equal(tbl['id'], [1, 2])
assert_allclose(tbl['background'], 0)
assert_quantity_allclose(tbl['sum_aper_area'], 63.617251 * (u.pix * u.pix))
assert_quantity_allclose(tbl['sum_aper_area'], [63.617251, 62.22684693104279] * (u.pix * u.pix)) # noqa
assert_array_equal(tbl['pixarea_tot'], None)
assert_array_equal(tbl['aperture_sum_counts'], None)
assert_array_equal(tbl['aperture_sum_counts_err'], None)
Expand Down Expand Up @@ -106,7 +106,7 @@ def test_plugin_wcs_dithered(self):
sky = tbl['sky_centroid']
assert_allclose(sky.ra.deg, 337.518943)
assert_allclose(sky.dec.deg, -20.832083)
assert_allclose(tbl['sum'], 62.22684693104279)
assert_allclose(tbl['sum'], [63.617251, 62.22684693104279])

# Make sure it also works on an ellipse subset.
self.imviz._apply_interactive_region('bqplot:ellipse', (0, 0), (9, 4))
Expand Down

0 comments on commit 31c4d6c

Please sign in to comment.