@@ -301,21 +301,29 @@ def setDefaults(self):
301301 self .makeKernel .kernel .active .fitForBackground = True
302302 self .makeKernel .kernel .active .spatialKernelOrder = 1
303303 self .makeKernel .kernel .active .spatialBgOrder = 2
304- self .sourceSelector .doUnresolved = True # apply star-galaxy separation
304+ # Shared source selector settings
305+ doSkySources = False # Do not include sky sources
306+ doSignalToNoise = True # apply signal to noise filter
307+ doUnresolved = True # apply star-galaxy separation
308+ signalToNoiseMinimum = 10
309+ signalToNoiseMaximum = 500
305310 self .sourceSelector .doIsolated = True # apply isolated star selection
306311 self .sourceSelector .doRequirePrimary = True # apply primary flag selection
307- self .sourceSelector .doSkySources = False # Do not include sky sources
308- self .sourceSelector .doSignalToNoise = True # apply signal to noise filter
309- self .sourceSelector .signalToNoise .minimum = 10
310- self .sourceSelector .signalToNoise .maximum = 500
311- self .fallbackSourceSelector .doSkySources = False # Do not include sky sources
312- self .fallbackSourceSelector .doSignalToNoise = True # apply signal to noise filter
313- self .fallbackSourceSelector .signalToNoise .minimum = 10
312+ self .sourceSelector .doUnresolved = doUnresolved
313+ self .sourceSelector .doSkySources = doSkySources
314+ self .sourceSelector .doSignalToNoise = doSignalToNoise
315+ self .sourceSelector .signalToNoise .minimum = signalToNoiseMinimum
316+ self .sourceSelector .signalToNoise .maximum = signalToNoiseMaximum
314317 # The following two configs should not be necessary to be turned on for
315318 # PSF-matching, and the fallback kernel source selection will fail if
316319 # they are set since it does not run deblending.
317320 self .fallbackSourceSelector .doIsolated = False # Do not apply isolated star selection
318321 self .fallbackSourceSelector .doRequirePrimary = False # Do not apply primary flag selection
322+ self .fallbackSourceSelector .doUnresolved = doUnresolved
323+ self .fallbackSourceSelector .doSkySources = doSkySources
324+ self .fallbackSourceSelector .doSignalToNoise = doSignalToNoise
325+ self .fallbackSourceSelector .signalToNoise .minimum = signalToNoiseMinimum
326+ self .fallbackSourceSelector .signalToNoise .maximum = signalToNoiseMaximum
319327
320328
321329class AlardLuptonSubtractConfig (AlardLuptonSubtractBaseConfig , lsst .pipe .base .PipelineTaskConfig ,
0 commit comments