Skip to content

Commit

Permalink
Add a test I forgot to put in
Browse files Browse the repository at this point in the history
  • Loading branch information
rmjarvis committed Nov 1, 2023
1 parent 37cc6a6 commit a93615f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,8 @@ def test_treerings():
im.setCenter(2000,2000)
obj.drawImage(im, method='phot', sensor=sensor6, rng=rng6)
print('im.sum = ',im.array.sum(), im.added_flux)
np.testing.assert_allclose(im.array.sum(), im.added_flux)
np.testing.assert_allclose(im.array.sum(), init_flux, rtol=1.e-3)

areas6a = sensor6.calculate_pixel_areas(im, use_flux=True)
assert np.min(areas6a.array) > 0
Expand Down

0 comments on commit a93615f

Please sign in to comment.