23 #include <pybind11/pybind11.h>
30 namespace py = pybind11;
32 using namespace py::literals;
34 using namespace lsst::afw::geom::ellipses;
37 py::module mod(
"_reducedShear",
"Python wrapper for afw _reducedShear library");
39 py::class_<ReducedShear, detail::EllipticityBase>
cls(mod,
"ReducedShear");
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", &ReducedShear::getAxisRatio);
49 cls.def(
"normalize", &ReducedShear::normalize);
50 cls.def(
"getName", &ReducedShear::getName);
52 return py::str(
"%s(%g, %g)").format(
self.getName(),
self.getE1(),
self.getE2());
PYBIND11_PLUGIN(_cameraPoint)
A complex ellipticity with magnitude .