99 """Interpolate over defects specified in a defect list.
103 exposure : `lsst.afw.image.Exposure`
105 defectList : `list` of `lsst.meas.algorithms.Defect`
106 List of defects to interpolate over.
110 ``exposure`` is modified in place and will become the reinterpolated exposure.
111 When reinterpolating following the interpolation in ip_isr, be aware that the masks are intentionally
112 left grown as a side-effect of that interpolation.
119 dummyPsf = afwDetection.Psf()
120 if self.config.fallbackValue
is None:
121 fallbackValue = afwMath.makeStatistics(exposure.image, afwMath.MEANCLIP).getValue()
123 fallbackValue = self.config.fallbackValue
124 if "INTRP" not in exposure.mask.getMaskPlaneDict():
125 exposure.mask.addMaskPlane(
"INTRP")
126 interpolateOverDefects(exposure.maskedImage, dummyPsf, defectList, fallbackValue,
True)