HigherOrderMomentsPlugin#

class lsst.meas.extensions.shapeHSM.HigherOrderMomentsPlugin(config, name, schema, metadata, logName=None)#

Bases: SingleFramePlugin

Base plugin for higher moments measurement

Methods Summary

fail(record[, error])

Record a failure of the measure or measureN method.

getExecutionOrder()

Get the relative execution order of this plugin.

Methods Documentation

fail(record, error=None)#

Record a failure of the measure or measureN method.

Parameters#

measRecordlsst.afw.table.SourceRecord

Table record describing the source being measured.

errorMeasurementError, 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.

classmethod getExecutionOrder()#

Get the relative execution order of this plugin.

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