Skip to content

Commit

Permalink
Add test for doRequireFiniteRaDec to ReferenceSourceSelectorTask.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Jan 18, 2024
1 parent 96bfa61 commit 33cb14d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_sourceSelector.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,13 @@ def testFiniteRaDec(self):
num = 5
for _ in range(num):
self.catalog.addNew()
self.catalog["coord_ra"][:] = 1.0
self.catalog["coord_dec"][:] = 1.0
self.catalog["coord_ra"][0] = np.nan
self.catalog["coord_dec"][1] = np.inf
self.config.doRequireFiniteRaDec = True

self.check([False, False, True, True, True])


class TestBaseSourceSelector(lsst.utils.tests.TestCase):
Expand Down

0 comments on commit 33cb14d

Please sign in to comment.