NumDiaSourcesDiaPlugin¶
- 
class lsst.meas.base.NumDiaSourcesDiaPlugin(config, name, metadata)¶
- Bases: - lsst.meas.base.DiaObjectCalculationPlugin- Compute the total number of DiaSources associated with this DiaObject. - Attributes Summary - APCORR_ORDER- CENTROID_ORDER- DEFAULT_CATALOGCALCULATION- FLUX_MOMENTS_CALCULATED- FLUX_ORDER- SHAPE_ORDER- inputCols- needsFilter- outputCols- plugType- registry- Methods Summary - calculate(diaObjects, diaSources, **kwargs)- Compute the total number of DiaSources associated with this DiaObject. - fail(diaObject, columns[, error])- Set diaObject position values to nan. - getExecutionOrder()- Used to set the relative order of plugin execution. - getLogName()- getTransformClass()- Get the measurement transformation appropriate to this plugin. - Attributes Documentation - 
APCORR_ORDER= 3.0¶
 - 
CENTROID_ORDER= 0.0¶
 - 
DEFAULT_CATALOGCALCULATION= 4.0¶
 - 
FLUX_MOMENTS_CALCULATED= 5.0¶
 - 
FLUX_ORDER= 2.0¶
 - 
SHAPE_ORDER= 1.0¶
 - 
inputCols= []¶
 - 
needsFilter= False¶
 - 
outputCols= ['nDiaSources']¶
 - 
plugType= 'multi'¶
 - 
registry= <lsst.meas.base.pluginRegistry.PluginRegistry object>¶
 - Methods Documentation - 
calculate(diaObjects, diaSources, **kwargs)¶
- Compute the total number of DiaSources associated with this DiaObject. - Parameters: - diaObject : dict
- Summary object to store values in and read ra/decl from. 
- **kwargs
- Any additional keyword arguments that may be passed to the plugin. 
 
- diaObject : 
 - 
fail(diaObject, columns, error=None)¶
- Set diaObject position values to nan. - Parameters: - diaObject : dict
- Summary object to store values in. 
- columns : listofstr
- List of string names of columns to write a the failed value. 
- error : BaseExceptionorNone
- Error to pass. Kept for consistency with CatologCalculationPlugin. Unused. 
 
- diaObject : 
 - 
classmethod getExecutionOrder()¶
- Used to set the relative order of plugin execution. - The values returned by - getExecutionOrderare compared across all plugins, and smaller numbers run first.- Notes - CatalogCalculationPlugins must run with- BasePlugin.DEFAULT_CATALOGCALCULATIONor higher.- All plugins must implement this method with an appropriate run level 
 - 
getLogName()¶
 - 
static getTransformClass()¶
- Get the measurement transformation appropriate to this plugin. - This returns a subclass of - transforms.MeasurementTransform, which may be instantiated with details of the algorithm configuration and then called with information about calibration and WCS to convert from raw measurement quantities to calibrated units. Calibrated data is then provided in a separate output table.- Notes - By default, we copy everything from the input to the output without transformation. 
 
-