21 #include "pybind11/pybind11.h" 22 #include "pybind11/stl.h" 24 #include "lsst/meas/extensions/psfex/Field.hh" 26 #undef PI // defined by psfex, clashes with afw 35 namespace extensions {
39 py::class_<Field, std::shared_ptr<Field>> clsField(mod,
"Field");
41 clsField.def(py::init<std::string const&>(),
44 clsField.def(
"finalize", &Field::finalize);
45 clsField.def(
"addExt", &Field::addExt);
46 clsField.def(
"getNext", &Field::getNext);
47 clsField.def(
"getPsfs", &Field::getPsfs);
50 "fields"_a,
"sets"_a);
PYBIND11_MODULE(field, mod)
def makeit(prefs, context, saveWcs=False, plot=dict())
A base class for image defects.