Skip to content

Commit

Permalink
Merge pull request #318 from lsst/tickets/DM-44150
Browse files Browse the repository at this point in the history
DM-44150: Remove unnecessary DetectAndMeasure plugins
  • Loading branch information
parejkoj authored May 29, 2024
2 parents d356a49 + 3b792af commit 3a940c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions python/lsst/ip/diffim/detectAndMeasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,6 @@ def setDefaults(self):
self.detection.thresholdType = "pixel_stdev"
self.detection.excludeMaskPlanes = ["EDGE", "SAT", "BAD", "INTRP"]

# Add filtered flux measurement, the correct measurement for pre-convolved images.
self.measurement.algorithms.names.add("base_PeakLikelihoodFlux")
self.measurement.plugins.names |= ["ext_trailedSources_Naive",
"base_LocalPhotoCalib",
"base_LocalWcs",
Expand Down
4 changes: 1 addition & 3 deletions python/lsst/ip/diffim/dipoleFitTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,14 @@ def setDefaults(self):
"base_PixelFlags",
"base_SkyCoord",
"base_PsfFlux",
"base_SdssShape",
"base_GaussianFlux",
]
# Only measure the apertures we need to report in the alert stream.
self.plugins["base_CircularApertureFlux"].radii = [12.0]

self.slots.calibFlux = None
self.slots.modelFlux = None
self.slots.gaussianFlux = None
self.slots.shape = "base_SdssShape"
self.slots.shape = None
# This will be switched to "ip_diffim_DipoleFit" as this task runs.
self.slots.centroid = "base_SdssCentroid"
self.doReplaceWithNoise = False
Expand Down

0 comments on commit 3a940c3

Please sign in to comment.