LSST Applications g0265f82a02+d6b5cd48b5,g02d81e74bb+80768bd682,g04242d3e92+8eaa23c173,g06b2ea86fd+734f9505a2,g2079a07aa2+14824f138e,g212a7c68fe+5f4fc2ea00,g2305ad1205+293ab1327e,g2bbee38e9b+d6b5cd48b5,g337abbeb29+d6b5cd48b5,g3ddfee87b4+8eaa23c173,g487adcacf7+abec5a19c5,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+97ef3b4495,g5a732f18d5+66d966b544,g5d7b63bc56+636c3c3fd8,g64a986408d+80768bd682,g858d7b2824+80768bd682,g8a8a8dda67+a6fc98d2e7,g99cad8db69+6282a5f541,g9ddcbc5298+d4bad12328,ga1e77700b3+246acaaf9c,ga8c6da7877+9e3c062e8e,gb0e22166c9+3863383f4c,gb6a65358fc+d6b5cd48b5,gba4ed39666+9664299f35,gbb8dafda3b+60f904e7bc,gc120e1dc64+1bf26d0180,gc28159a63d+d6b5cd48b5,gcf0d15dbbd+8eaa23c173,gd2a12a3803+f8351bc914,gdaeeff99f8+a38ce5ea23,ge79ae78c31+d6b5cd48b5,gee10cc3b42+a6fc98d2e7,gf1cff7945b+80768bd682,v24.1.5.rc1
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.meas.modelfit.cmodel.cmodelContinued.CModelSingleFramePlugin Class Reference
Inheritance diagram for lsst.meas.modelfit.cmodel.cmodelContinued.CModelSingleFramePlugin:
lsst.meas.base.sfm.SingleFramePlugin lsst.meas.base.baseMeasurement.BaseMeasurementPlugin lsst.meas.base.pluginsBase.BasePlugin

Public Member Functions

 __init__ (self, config, name, schema, metadata)
 
 measure (self, measRecord, exposure)
 
 fail (self, measRecord, error=None)
 

Static Public Member Functions

 getExecutionOrder ()
 

Public Attributes

 algorithm
 

Static Public Attributes

 ConfigClass = CModelSingleFrameConfig
 

Detailed Description

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.

Definition at line 46 of file cmodelContinued.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.meas.modelfit.cmodel.cmodelContinued.CModelSingleFramePlugin.__init__ ( self,
config,
name,
schema,
metadata )

Reimplemented from lsst.meas.base.sfm.SingleFramePlugin.

Definition at line 58 of file cmodelContinued.py.

58 def __init__(self, config, name, schema, metadata):
59 lsst.meas.base.SingleFramePlugin.__init__(self, config, name, schema, metadata)
60 self.algorithm = CModelAlgorithm(name, config.makeControl(), schema)
61

Member Function Documentation

◆ fail()

lsst.meas.modelfit.cmodel.cmodelContinued.CModelSingleFramePlugin.fail ( self,
measRecord,
error = None )
Record a failure of the `measure` or `measureN` method.

Parameters
----------
measRecord : `lsst.afw.table.SourceRecord`
    Table record describing the source being measured.
error : `MeasurementError`, optional
    Only provided if the measurement failed due to a
    `MeasurementError` being raised; otherwise, will be `None`.

Notes
-----
When the plugin raises an exception, framework will call
`BasePlugin.fail` to allow the plugin to set its failure flag
field(s).  When `BasePlugin.measureN` raises an exception,
`BasePlugin.fail` will be called repeatedly with all the records that
were being measured.

If the exception is an `MeasurementError`, it will be passed as the
error argument; in all other cases the error argument will be `None`,
and the failure will be logged by the measurement framework as a
warning.

Reimplemented from lsst.meas.base.pluginsBase.BasePlugin.

Definition at line 65 of file cmodelContinued.py.

65 def fail(self, measRecord, error=None):
66 self.algorithm.fail(measRecord, error.cpp if error is not None else None)
67
68

◆ getExecutionOrder()

lsst.meas.modelfit.cmodel.cmodelContinued.CModelSingleFramePlugin.getExecutionOrder ( )
static
Get the relative execution order of this plugin.

Must be reimplemented as a class method by concrete derived classes.

Reimplemented from lsst.meas.base.pluginsBase.BasePlugin.

Definition at line 55 of file cmodelContinued.py.

55 def getExecutionOrder():
56 return 3.0
57

◆ measure()

lsst.meas.modelfit.cmodel.cmodelContinued.CModelSingleFramePlugin.measure ( self,
measRecord,
exposure )
Measure the properties of a source on a single image.

The image may be from a single epoch, or it may be a coadd.

Parameters
----------
measRecord : `lsst.afw.table.SourceRecord`
    Record describing the object being measured. Previously-measured
    quantities may be retrieved from here, and it will be updated
    in-place tih the outputs of this plugin.
exposure : `lsst.afw.image.ExposureF`
    The pixel data to be measured, together with the associated PSF,
    WCS, etc. All other sources in the image should have been replaced
    by noise according to deblender outputs.

Reimplemented from lsst.meas.base.sfm.SingleFramePlugin.

Definition at line 62 of file cmodelContinued.py.

62 def measure(self, measRecord, exposure):
63 self.algorithm.measure(measRecord, exposure)
64

Member Data Documentation

◆ algorithm

lsst.meas.modelfit.cmodel.cmodelContinued.CModelSingleFramePlugin.algorithm

Definition at line 60 of file cmodelContinued.py.

◆ ConfigClass

lsst.meas.modelfit.cmodel.cmodelContinued.CModelSingleFramePlugin.ConfigClass = CModelSingleFrameConfig
static

Definition at line 52 of file cmodelContinued.py.


The documentation for this class was generated from the following file: