Namespace lsst::meas::base::python¶
-
namespace
python Functions
-
template<class
Algorithm, classPyAlg>
std::enable_if<!std::is_abstract<Algorithm>::value, void>::typedeclareAlgorithmConstructor(PyAlg &cls) Wrap the standard algorithm constructor.
- Template Parameters
Algorithm: The algorithm class.PyAlg: Thepybind11::class_class corresponding toAlgorithm.
- Parameters
[inout] cls: The pybind11 wrapper forAlgorithm.
-
template<class
Algorithm, classPyAlg>
std::enable_if<std::is_abstract<Algorithm>::value, void>::typedeclareAlgorithmConstructor(PyAlg &cls) Dummy function for not wrapping the constructor of an abstract base class.
Pybind11 cannot wrap such constructors, and there is no reason to call them from Python anyway.
- Template Parameters
Algorithm: The algorithm class.PyAlg: Thepybind11::class_class corresponding toAlgorithm.
- Parameters
[inout] cls: The pybind11 wrapper forAlgorithm.
-
template<class
Algorithm, classPyAlg>
voiddeclareAlgorithm(PyAlg &clsAlgorithm) Wrap the implicit API used by meas_base’s algorithms.
This function only initializes constructors, fields, and methods common to all Algorithms.
- Template Parameters
Algorithm: The algorithm class.PyAlg: Thepybind11::class_class corresponding toAlgorithm.
- Parameters
[inout] clsAlgorithm: The pybind11 wrapper forAlgorithm.
-
template<class
Algorithm, classControl, classPyAlg, classPyCtrl>
voiddeclareAlgorithm(PyAlg &clsAlgorithm, PyCtrl &clsControl) Wrap the implicit API used by meas_base’s algorithm-control pairs (no transform).
This function only initializes constructors, fields, and methods common to all Algorithms and Controls.
- Template Parameters
Algorithm: The algorithm class.Control: The control class. Must equalAlgorithm::ControlandTransform::Control.PyAlg: Thepybind11::class_class corresponding toAlgorithm.PyCtrl: Thepybind11::class_class corresponding toControl.
- Parameters
[inout] clsAlgorithm[inout] clsControl: The pybind11 wrappers for the respective C++ classes.
-
template<class
Algorithm, classControl, classTransform, classPyAlg, classPyCtrl, classPyXform>
voiddeclareAlgorithm(PyAlg &clsAlgorithm, PyCtrl &clsControl, PyXform &clsTransform) Wrap the implicit API used by meas_base’s algorithm-control-transform triads.
This function only initializes constructors, fields, and methods common to all Algorithms, Controls, and Transforms.
- Template Parameters
Algorithm: The algorithm class.Control: The control class. Must equalAlgorithm::ControlandTransform::Control.Transform: The transform class.PyAlg: Thepybind11::class_class corresponding toAlgorithm.PyCtrl: Thepybind11::class_class corresponding toControl.PyXform: Thepybind11::class_class corresponding toTransform.
- Parameters
[inout] clsAlgorithm[inout] clsControl[inout] clsTransform: The pybind11 wrappers for the respective C++ classes.
-
template<class