Skip to content

Commit

Permalink
Add trailedSources measurement plugin to ImageDifferenceTask
Browse files Browse the repository at this point in the history
  • Loading branch information
langfzac committed Oct 12, 2021
1 parent 1295762 commit b0d1531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/lsst/pipe/tasks/imageDifference.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import lsst.geom as geom
import lsst.afw.math as afwMath
import lsst.afw.table as afwTable
import lsst.meas.extensions.trailedSources # noqa: F401
from lsst.meas.astrom import AstrometryConfig, AstrometryTask
from lsst.meas.base import ForcedMeasurementTask, ApplyApCorrTask
from lsst.meas.algorithms import LoadIndexedReferenceObjectsTask, SkyObjectsTask
Expand Down Expand Up @@ -348,7 +349,8 @@ def setDefaults(self):
# To change that you must modify algorithms.names in the task's applyOverrides method,
# after the user has set doPreConvolve.
self.measurement.algorithms.names.add('base_PeakLikelihoodFlux')
self.measurement.plugins.names |= ['base_LocalPhotoCalib',
self.measurement.plugins.names |= ['ext_trailedSources_Naive',
'base_LocalPhotoCalib',
'base_LocalWcs']

self.forcedMeasurement.plugins = ["base_TransformedCentroid", "base_PsfFlux"]
Expand Down
1 change: 1 addition & 0 deletions ups/pipe_tasks.table
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ setupRequired(obs_base)
setupRequired(meas_algorithms)
setupRequired(meas_extensions_scarlet)
setupRequired(meas_extensions_psfex)
setupRequired(meas_extensions_trailedSources)
setupRequired(kht)
setupOptional(meas_astrom)
setupOptional(meas_deblender)
Expand Down

0 comments on commit b0d1531

Please sign in to comment.