22 #include "pybind11/pybind11.h" 23 #include "pybind11/stl.h" 25 #include "lsst/afw/table/io/python.h" 27 #include "lsst/meas/extensions/psfex/prefs.hh" 28 #include "lsst/daf/base/PropertySet.h" 30 namespace py = pybind11;
35 namespace extensions {
39 py::module mod(
"prefs");
41 py::class_<Prefs> clsPrefs(mod,
"Prefs");
43 clsPrefs.attr(
"ALL_EXTENSIONS") = py::cast(static_cast<int>(Prefs::ALL_EXTENSIONS));
45 clsPrefs.def(py::init<std::string const&, lsst::daf::base::PropertySet const*>(),
46 "filename"_a,
"values"_a=
nullptr);
48 clsPrefs.def(
"use", &Prefs::use);
49 clsPrefs.def(
"setCommandLine", &Prefs::setCommandLine);
50 clsPrefs.def(
"getNcat", &Prefs::getNcat);
51 clsPrefs.def(
"getPsfStep", &Prefs::getPsfStep);
52 clsPrefs.def(
"getMinsn", &Prefs::getMinsn);
53 clsPrefs.def(
"getMaxellip", &Prefs::getMaxellip);
54 clsPrefs.def(
"getFwhmrange", &Prefs::getFwhmrange);
55 clsPrefs.def(
"getPsfsize", &Prefs::getPsfsize);
56 clsPrefs.def(
"getAutoselectFlag", &Prefs::getAutoselectFlag);
57 clsPrefs.def(
"getFlagMask", &Prefs::getFlagMask);
58 clsPrefs.def(
"getMaxvar", &Prefs::getMaxvar);
59 clsPrefs.def(
"getVarType", &Prefs::getVarType);
60 clsPrefs.def(
"getBadpixNmax", &Prefs::getBadpixNmax);
61 clsPrefs.def(
"getBadpixFlag", &Prefs::getBadpixFlag);
62 clsPrefs.def(
"getCenterKey", &Prefs::getCenterKey);
63 clsPrefs.def(
"getPhotfluxRkey", &Prefs::getPhotfluxRkey);
64 clsPrefs.def(
"getPhotfluxNum", &Prefs::getPhotfluxNum);
65 clsPrefs.def(
"getPhotfluxerrRkey", &Prefs::getPhotfluxerrRkey);
66 clsPrefs.def(
"getPhotfluxerrNum", &Prefs::getPhotfluxerrNum);
67 clsPrefs.def(
"getProfAccuracy", &Prefs::getProfAccuracy);
68 clsPrefs.def(
"getVerboseType", &Prefs::getVerboseType);
69 clsPrefs.def(
"getContextName", &Prefs::getContextName);
70 clsPrefs.def(
"getContextGroup", &Prefs::getContextGroup);
71 clsPrefs.def(
"getGroupDeg", &Prefs::getGroupDeg);
72 clsPrefs.def(
"addCatalog", &Prefs::addCatalog);
73 clsPrefs.def(
"getCatalogs", &Prefs::getCatalogs);