wrapSingleFrameAlgorithm¶
- 
lsst.meas.base.wrapSingleFrameAlgorithm(AlgClass, executionOrder, name=None, needsMetadata=False, hasMeasureN=False, hasLogName=False, **kwds)¶
- Expose a C++ - SingleFrameAlgorithmclass as a measurement plugin.- Parameters: - AlgClass : API compatible with SingleFrameAlgorithm
- C++ algorithm class to convert. May either derive directly from - SingleFrameAlgorithmor be an unrelated class which has the same- measure,- measureNand- failsignatures.
- executionOrder : float
- The order this plugin should be run, relative to others (see - BasePlugin.getExecutionOrder).
- name : str, optional
- Name to use when registering the algorithm. Ignored if - doRegistry=False; set to- generateAlgorithmName(AlgClass)if- None.
- needsMetadata : bool, optional
- Sets whether the - AlgClass’s constructor should be passed a- PropertySetmetadata argument.
- hasMeasureN : bool, optional
- Does the algorithm support simultaneous measurement of multiple sources? If - True, a- bool- doMeasureNfield will be added to the generated config class, and its value will be passed as the last argument when calling the- AlgClassconstructor.
- hasLogName : bool, optional
- Trueif the C++ algorithm supports- logNameas a constructor argument.
- **kwds
- Additional keyword arguments are passed to the lower-level - wrapAlgorithmand- wrapAlgorithmControlclasses.
 - Returns: - singleFramePlugin : subclass of SingleFramePlugin
- The new measurement plugin class. 
 - Notes - The first three arguments to the C++ constructor are expected to be - Control const & ctrl, std::string const & name, Schema & schema.- If - needsMetadatais- True, we also append- PropertySet & metadata.- If - hasMeasureNis- True, we also append- bool doMeasureN.- If - hasLogNameis- True, we also append- std::string logName.- If more than one of the above is - True, the metadata- PropertySetprecedes the- doMeasureN- booland the- logNamecomes last of the three.
- AlgClass : API compatible with