|
template<class Algorithm , class PyAlg > |
std::enable_if<!std::is_abstract< Algorithm >::value, void >::type | declareAlgorithmConstructor (PyAlg &cls) |
| Wrap the standard algorithm constructor. More...
|
|
template<class Algorithm , class PyAlg > |
std::enable_if< std::is_abstract< Algorithm >::value, void >::type | declareAlgorithmConstructor (PyAlg &cls) |
| Dummy function for not wrapping the constructor of an abstract base class. More...
|
|
template<class Algorithm , class PyAlg > |
void | declareAlgorithm (PyAlg &clsAlgorithm) |
| Wrap the implicit API used by meas_base's algorithms. More...
|
|
template<class Algorithm , class Control , class PyAlg , class PyCtrl > |
void | declareAlgorithm (PyAlg &clsAlgorithm, PyCtrl &clsControl) |
| Wrap the implicit API used by meas_base's algorithm-control pairs (no transform). More...
|
|
template<class Algorithm , class Control , class Transform , class PyAlg , class PyCtrl , class PyXform > |
void | declareAlgorithm (PyAlg &clsAlgorithm, PyCtrl &clsControl, PyXform &clsTransform) |
| Wrap the implicit API used by meas_base's algorithm-control-transform triads. More...
|
|
template<class Algorithm , class PyAlg >
void lsst::meas::base::python::declareAlgorithm |
( |
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 | The pybind11::class_ class corresponding to Algorithm . |
- Parameters
-
[in,out] | clsAlgorithm | The pybind11 wrapper for Algorithm . |
Definition at line 87 of file python.h.
91 declareAlgorithmConstructor<Algorithm>(clsAlgorithm);
96 clsAlgorithm.def(
"fail", &Algorithm::fail,
"measRecord"_a,
"error"_a = NULL);
template<class Algorithm , class Control , class PyAlg , class PyCtrl >
void lsst::meas::base::python::declareAlgorithm |
( |
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 equal Algorithm::Control and Transform::Control . |
PyAlg | The pybind11::class_ class corresponding to Algorithm . |
PyCtrl | The pybind11::class_ class corresponding to Control . |
- Parameters
-
[in,out] | clsAlgorithm,clsControl | The pybind11 wrappers for the respective C++ classes. |
Definition at line 116 of file python.h.
117 declareAlgorithm<Algorithm>(clsAlgorithm);
122 clsControl.def(py::init<>());
template<class Algorithm , class Control , class Transform , class PyAlg , class PyCtrl , class PyXform >
void lsst::meas::base::python::declareAlgorithm |
( |
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 equal Algorithm::Control and Transform::Control . |
Transform | The transform class. |
PyAlg | The pybind11::class_ class corresponding to Algorithm . |
PyCtrl | The pybind11::class_ class corresponding to Control . |
PyXform | The pybind11::class_ class corresponding to Transform . |
- Parameters
-
[in,out] | clsAlgorithm,clsControl,clsTransform | The pybind11 wrappers for the respective C++ classes. |
Definition at line 148 of file python.h.
149 declareAlgorithm<Algorithm, Control>(clsAlgorithm, clsControl);
155 py::init<typename Transform::Control const &, std::string const &, afw::table::SchemaMapper &>(),
156 "ctrl"_a,
"name"_a,
"mapper"_a);
159 clsTransform.def(
"__call__",
165 "inputCatalog"_a,
"outputCatalog"_a,
"wcs"_a,
"photoCalib"_a);
template<class Algorithm , class PyAlg >
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 | The pybind11::class_ class corresponding to Algorithm . |
- Parameters
-
[in,out] | cls | The pybind11 wrapper for Algorithm . |
Definition at line 72 of file python.h.