Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/test_defects.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
import lsst.afw.image as afwImage
import lsst.ip.isr as ipIsr
import lsst.cp.pipe as cpPipe
from lsst.ip.isr import isrMock, countMaskedPixels
import lsst.ip.isr.isrMock as isrMock

from lsst.geom import Box2I, Point2I, Extent2I
from lsst.daf.base import PropertyList

Expand Down Expand Up @@ -887,7 +888,7 @@ def test_edgeMasking(self):
testImage = self.flatExp.clone()
mi = testImage.maskedImage

self.assertEqual(countMaskedPixels(mi, 'EDGE'), 0)
self.assertEqual(ipIsr.countMaskedPixels(mi, 'EDGE'), 0)
self.defaultTask._setEdgeBits(mi)

hEdge = self.defaultConfig.nPixBorderLeftRight
Expand All @@ -896,7 +897,7 @@ def test_edgeMasking(self):

nEdge = xSize*vEdge*2 + ySize*hEdge*2 - hEdge*vEdge*4

self.assertEqual(countMaskedPixels(mi, 'EDGE'), nEdge)
self.assertEqual(ipIsr.countMaskedPixels(mi, 'EDGE'), nEdge)

def test_badImage(self):
"""Check that fully-bad images do not fail.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_deferredCharge.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import lsst.utils.tests

import lsst.cp.pipe as cpPipe
from lsst.ip.isr import IsrMock
from lsst.ip.isr.isrMock import IsrMock


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