23 #include "pybind11/pybind11.h"
24 #include "pybind11/stl.h"
34 using namespace pybind11::literals;
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);