23 #include <pybind11/pybind11.h>
32 using namespace py::literals;
37 py::class_<ReducedShear, detail::EllipticityBase>
cls(mod,
"ReducedShear");
41 cls.def(py::init<double, double>(),
"e1"_a = 0.0,
"e2"_a = 0.0);
46 cls.def(
"getAxisRatio", &ReducedShear::getAxisRatio);
47 cls.def(
"normalize", &ReducedShear::normalize);
48 cls.def(
"getName", &ReducedShear::getName);
50 return py::str(
"{}({}, {})").format(
self.getName(),
self.getE1(),
self.getE2());