Skip to content

Commit

Permalink
test: remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
suvayu committed Jul 11, 2024
1 parent 54f541b commit 73c2a02
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions test/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,18 +382,6 @@ class TestMaskedSource(unittest.TestCase):
of the image.
"""

@requires_data(GRB120422A)
def testWholeSourceMasked(self):
"""
Source in masked region
"""

self.image = accessors.sourcefinder_image_from_accessor(
FitsImage(GRB120422A))
self.image.data[250:280, 250:280] = np.ma.masked
results = self.image.extract(det=5, anl=3)
self.assertFalse(results)

@requires_data(GRB120422A)
def testWholeSourceMasked(self):
"""
Expand All @@ -404,6 +392,8 @@ def testWholeSourceMasked(self):

self.image = accessors.sourcefinder_image_from_accessor(
FitsImage(GRB120422A))
# FIXME: the line below was in a shadowed method with an identical name
# self.image.data[250:280, 250:280] = np.ma.masked
self.image.data[266:269, 263:266] = np.ma.masked
# Our modified kappa,sigma clipper gives a slightly lower noise
# which catches an extra noise peak at the 5 sigma level.
Expand Down

0 comments on commit 73c2a02

Please sign in to comment.