makeTemplatesMonotonic

lsst.meas.deblender.makeTemplatesMonotonic(debResult, log)

Make the templates monotonic.

The pixels in the templates are modified such that pixels further from the peak will have values smaller than those closer to the peak.

Parameters:
debResult: `lsst.meas.deblender.baseline.DeblenderResult`

Container for the final deblender results.

log: `log.Log`

LSST logger for logging purposes.

Returns:
modified: bool

Whether or not any templates were modified. This will be True as long as there is at least one source that is not flagged as a PSF.