Skip to content

Commit

Permalink
Update subtractImages sourceSelector configs
Browse files Browse the repository at this point in the history
  • Loading branch information
abudlong committed Oct 17, 2024
1 parent dd5a904 commit 39f4842
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/lsst/ip/diffim/subtractImages.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,8 @@ def setDefaults(self):
self.makeKernel.kernel.active.fitForBackground = self.doSubtractBackground
self.makeKernel.kernel.active.spatialKernelOrder = 1
self.makeKernel.kernel.active.spatialBgOrder = 2
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.doFlags = True
self.sourceSelector.flags.good = ["calib_psf_used",]
self.sourceSelector.doSignalToNoise = True # apply signal to noise filter
self.sourceSelector.signalToNoise.minimum = 10
self.sourceSelector.signalToNoise.maximum = 500
Expand Down
2 changes: 2 additions & 0 deletions python/lsst/ip/diffim/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@ def _makeTruthSchema():
schema.addField("base_ClassificationSizeExtendedness_value", "Flag", "testing flag.")
schema.addField("deblend_nChild", "Flag", "testing flag.")
schema.addField("detect_isPrimary", "Flag", "testing flag.")
schema.addField("calib_psf_used", "Flag", "testing flag.")
schema.getAliasMap().set("slot_Centroid", "truth")
schema.getAliasMap().set("slot_CalibFlux", "truth")
schema.getAliasMap().set("slot_ApFlux", "truth")
Expand Down Expand Up @@ -1335,6 +1336,7 @@ def _fillTruthCatalog(injectList):
record["base_ClassificationSizeExtendedness_value"] = 0
record["deblend_nChild"] = 0
record["detect_isPrimary"] = True
record["calib_psf_used"] = True

return catalog

Expand Down

0 comments on commit 39f4842

Please sign in to comment.