Skip to content

Commit

Permalink
Merge branch 'tickets/DM-47385'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrawls committed Nov 9, 2024
2 parents 4e62401 + ce2aa10 commit 636f5cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_dipoleFitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,13 @@ def testDipoleEdge(self):
not detected.
"""

# with no edge we should detect both dipole sources
# with no edge, and masks growing due to convolution,
# we should not detect any dipole sources
# (If we were to keep the original mask instead, as in DM-45318 that
# was subsequently canceled in DM-47385, we will detect 2 sources)
dipoleTestImage = DipoleTestImage(xc=[5.3, 4.8], yc=[4.6, 86.5], flux=[200, 210], edgeWidth=0)
sources = self._runDetection(dipoleTestImage)
self.assertEqual(len(sources), 2)
self.assertEqual(len(sources), 0)

# with a wide edge we should not detect any sources
dipoleTestImage = DipoleTestImage(xc=[5.3, 4.8], yc=[4.6, 86.5], flux=[200, 210], edgeWidth=20)
Expand Down

0 comments on commit 636f5cd

Please sign in to comment.