Coverage for python/lsst/meas/modelfit/cmodel/cmodelContinued.py : 91%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# # LSST Data Management System # Copyright 2008-2017 LSST/AURA. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the LSST License Statement and # the GNU General Public License along with this program. If not, # see <http://www.lsstcorp.org/LegalNotices/>. #
# The Plugin classes here are accessed via registries, not direct imports.
"""Single-frame measurement interface for CModelAlgorithm.
This class simply provides __init__ and measure methods that matched the SingleFramePlugin signatures and delegate to the CModelAlgorithm's methods. """
def getExecutionOrder():
self.algorithm.fail(measRecord, error.cpp if error is not None else None)
"""Forced measurement interface for CModelAlgorithm
This class simply provides __init__ and measure methods that matched the ForcedPlugin signatures and delegate to CModelAlgorithm implementations.
The CModel algorithm currently cannot be run in forced mode when the measurement WCS is different from the reference WCS (as is the case in CCD forced photometry). This is a temporary limitation that will be addressed on DM-5405.
CModel forced measurement when the measurement image is the same as the reference image should be almost -- but not quite -- identical to unforced measurement. The primary difference is that the final fit region from the reference measurement will be used for the initial fit in forced mode as well as the exp, dev, and combined exp+dev fits """
def getExecutionOrder():
raise lsst.meas.base.FatalAlgorithmError( "CModel forced measurement currently requires the measurement image to have the same" " Wcs as the reference catalog (this is a temporary limitation)." )
self.algorithm.fail(measRecord, error.cpp if error is not None else None) |