Skip to content

Commit ad2107a

Browse files
committed
WCS area check no longer required
1 parent a4d5bd2 commit ad2107a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

python/lsst/pipe/tasks/insertFakes.py

-9
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ def _add_fake_sources(exposure, objects, calibFluxRadius=12.0, logger=None):
7272
fullBounds = galsim.BoundsI(bbox.minX, bbox.maxX, bbox.minY, bbox.maxY)
7373
gsImg = galsim.Image(exposure.image.array, bounds=fullBounds)
7474

75-
pixScale = wcs.getPixelScale().asArcseconds()
76-
7775
for spt, gsObj in objects:
7876
pt = wcs.skyToPixel(spt)
7977
posd = galsim.PositionD(pt.x, pt.y)
@@ -84,13 +82,6 @@ def _add_fake_sources(exposure, objects, calibFluxRadius=12.0, logger=None):
8482
mat = wcs.linearizePixelToSky(spt, geom.arcseconds).getMatrix()
8583
gsWCS = galsim.JacobianWCS(mat[0, 0], mat[0, 1], mat[1, 0], mat[1, 1])
8684

87-
# This check is here because sometimes the WCS
88-
# is multivalued and objects that should not be
89-
# were being included.
90-
gsPixScale = np.sqrt(gsWCS.pixelArea())
91-
if gsPixScale < pixScale/2 or gsPixScale > pixScale*2:
92-
continue
93-
9485
try:
9586
psfArr = psf.computeKernelImage(pt).array
9687
apCorr = psf.computeApertureFlux(calibFluxRadius, pt)

0 commit comments

Comments
 (0)