Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-46678: Update subtractImages sourceSelector configs #344

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading