23 #include <pybind11/pybind11.h> 30 namespace py = pybind11;
37 py::module mod(
"_conformalShear",
"Python wrapper for afw _conformalShear library");
39 py::class_<ConformalShear, detail::EllipticityBase>
cls(mod,
"ConformalShear");
42 cls.def(py::init<std::complex<double>
const&>());
43 cls.def(py::init<double, double>(),
"e1"_a = 0.0,
"e2"_a = 0.0);
48 cls.def(
"getAxisRatio", &ConformalShear::getAxisRatio);
49 cls.def(
"normalize", &ConformalShear::normalize);
50 cls.def(
"getName", &ConformalShear::getName);
52 return py::str(
"%s(%g, %g)").format(
self.getName(),
self.getE1(),
self.getE2());