diff --git a/python/lsst/ip/diffim/subtractImages.py b/python/lsst/ip/diffim/subtractImages.py index 3802c646..c5d6fdf8 100644 --- a/python/lsst/ip/diffim/subtractImages.py +++ b/python/lsst/ip/diffim/subtractImages.py @@ -258,8 +258,10 @@ def setDefaults(self): self.makeKernel.kernel.active.fitForBackground = self.doSubtractBackground self.makeKernel.kernel.active.spatialKernelOrder = 1 self.makeKernel.kernel.active.spatialBgOrder = 2 - self.sourceSelector.doFlags = True - self.sourceSelector.flags.good = ["calib_psf_used", ] + self.sourceSelector.doUnresolved = True # apply star-galaxy separation + self.sourceSelector.doIsolated = True # apply isolated star selection + self.sourceSelector.doRequirePrimary = True # apply primary flag selection + self.sourceSelector.doSkySources = False # Do not include sky sources self.sourceSelector.doSignalToNoise = True # apply signal to noise filter self.sourceSelector.signalToNoise.minimum = 10 self.sourceSelector.signalToNoise.maximum = 500