9 py::class_<Inspector, std::shared_ptr<Inspector>,
Parametrizable>(p_class,
"Inspector",
"An inspector allows to log data at the different steps, for analysis.")
11 .def(py::init<const std::string&, const ParametersDoc, const Parameters&>(), py::arg(
"className"), py::arg(
"paramsDoc"), py::arg(
"params"))
13 .def(
"init", &Inspector::init)
15 .def(
"addStat", &Inspector::addStat, py::arg(
"name"), py::arg(
"data"))
18 std::ostringstream oss;
21 }).def(
"dumpStatsHeader", [](
Inspector&
self)
23 std::ostringstream oss;
24 self.dumpStatsHeader(oss);
28 .def(
"dumpIteration", &Inspector::dumpIteration, py::arg(
"iterationNumber"), py::arg(
"parameters"), py::arg(
"filteredReference"), py::arg(
"reading"), py::arg(
"matches"), py::arg(
"outlierWeights"), py::arg(
"transformationCheckers"))
29 .def(
"finish", &Inspector::finish, py::arg(
"iterationCount"));
void pybindInspector(py::class_< PM > &p_class)
The superclass of classes that are constructed using generic parameters. This class provides the para...