23 #include "pybind11/pybind11.h" 35 using PyDefectBase = py::class_<DefectBase, std::shared_ptr<DefectBase>>;
38 py::module::import(
"lsst.afw.geom");
40 PyDefectBase
cls(mod,
"DefectBase");
43 cls.def(py::init<const lsst::geom::Box2I &>(),
"bbox"_a);
46 cls.def(
"getBBox", &DefectBase::getBBox);
47 cls.def(
"getX0", &DefectBase::getX0);
48 cls.def(
"getX1", &DefectBase::getX1);
49 cls.def(
"getY0", &DefectBase::getY0);
50 cls.def(
"getY1", &DefectBase::getY1);
51 cls.def(
"clip", &DefectBase::clip);
52 cls.def(
"shift", (
void (DefectBase::*)(
int,
int)) & DefectBase::shift,
"dx"_a,
"dy"_a);
PYBIND11_MODULE(camera, mod)
A base class for image defects.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...