diff --git a/python/lsst/pipe/tasks/calibrate.py b/python/lsst/pipe/tasks/calibrate.py index 3d42fc804..266376c26 100644 --- a/python/lsst/pipe/tasks/calibrate.py +++ b/python/lsst/pipe/tasks/calibrate.py @@ -311,8 +311,8 @@ def setDefaults(self): # The photoRefCat connection is the name to use for the colorterms. self.photoCal.photoCatName = self.connections.photoRefCat # Set injected pixel flags. - self.calibrate.measurement.plugins["base_PixelFlags"].masksFpAnywhere.append("INJECTED") - self.calibrate.measurement.plugins["base_PixelFlags"].masksFpCenter.append("INJECTED_CORE") + self.measurement.plugins["base_PixelFlags"].masksFpAnywhere.append("INJECTED") + self.measurement.plugins["base_PixelFlags"].masksFpCenter.append("INJECTED_CORE") class CalibrateTask(pipeBase.PipelineTask):