LSSTApplications  20.0.0
LSSTDataManagementBasePackage
Functions
reducedShear.cc File Reference
#include <pybind11/pybind11.h>
#include "lsst/afw/geom/ellipses/ReducedShear.h"
#include "lsst/afw/geom/ellipses/EllipticityBase.h"

Go to the source code of this file.

Functions

 PYBIND11_MODULE (reducedShear, mod)
 

Function Documentation

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( reducedShear  ,
mod   
)

Definition at line 36 of file reducedShear.cc.

36  {
37  py::class_<ReducedShear, detail::EllipticityBase> cls(mod, "ReducedShear");
38 
39  /* Constructors */
40  cls.def(py::init<std::complex<double> const&>());
41  cls.def(py::init<double, double>(), "e1"_a = 0.0, "e2"_a = 0.0);
42 
43  /* Members */
44  // cls.def("dAssign", (Jacobian (ReducedShear::*)(Distortion const &)) &ReducedShear::dAssign);
45  // cls.def("dAssign", (Jacobian (ReducedShear::*)(ReducedShear const &)) &ReducedShear::dAssign);
46  cls.def("getAxisRatio", &ReducedShear::getAxisRatio);
47  cls.def("normalize", &ReducedShear::normalize);
48  cls.def("getName", &ReducedShear::getName);
49  cls.def("__repr__", [](ReducedShear const& self) {
50  return py::str("{}({}, {})").format(self.getName(), self.getE1(), self.getE2());
51  });
52 }
lsst::afw::geom.transform.transformContinued.cls
cls
Definition: transformContinued.py:33
lsst::afw::geom::ellipses::ReducedShear
A complex ellipticity with magnitude .
Definition: ReducedShear.h:45
std::complex< double >
lsst::utils.tests.init
def init()
Definition: tests.py:58