23 #include "pybind11/pybind11.h" 24 #include "pybind11/stl.h" 41 py::module::import(
"lsst.afw.table");
43 py::class_<PixelFlagsAlgorithm, std::shared_ptr<PixelFlagsAlgorithm>,
SimpleAlgorithm>
44 clsPixelFlagsAlgorithm(mod,
"PixelFlagsAlgorithm");
45 py::class_<PixelFlagsControl> clsPixelFlagsControl(mod,
"PixelFlagsControl");
47 clsPixelFlagsAlgorithm.def(
48 py::init<PixelFlagsAlgorithm::Control const &, std::string const &, afw::table::Schema &>(),
49 "ctrl"_a,
"name"_a,
"schema"_a);
51 clsPixelFlagsControl.def(py::init<>());
54 clsPixelFlagsAlgorithm.def(
"fail", &PixelFlagsAlgorithm::fail,
"measRecord"_a,
"error"_a =
nullptr);
A base class for image defects.
#define LSST_DECLARE_CONTROL_FIELD(WRAPPER, CLASS, NAME)
Macro used to wrap fields declared by LSST_CONTROL_FIELD using Pybind11.
A C++ control class to handle PixelFlagsAlgorithm's configuration.
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
def measure(mi, x, y, size, statistic, stats)
PYBIND11_MODULE(pixelFlags, mod)
This is the algorithm for PixelFlags.