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

Go to the source code of this file.

Functions

 PYBIND11_MODULE (conformalShear, mod)
 

Function Documentation

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( conformalShear  ,
mod   
)

Definition at line 36 of file conformalShear.cc.

36  {
37  py::class_<ConformalShear, detail::EllipticityBase> cls(mod, "ConformalShear");
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 (ConformalShear::*)(Distortion const &)) &ConformalShear::dAssign);
45  // cls.def("dAssign", (Jacobian (ConformalShear::*)(ReducedShear const &)) &ConformalShear::dAssign);
46  cls.def("getAxisRatio", &ConformalShear::getAxisRatio);
47  cls.def("normalize", &ConformalShear::normalize);
48  cls.def("getName", &ConformalShear::getName);
49  cls.def("__repr__", [](ConformalShear 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::ConformalShear
A logarithmic complex ellipticity with magnitude .
Definition: ConformalShear.h:45
std::complex< double >
lsst::utils.tests.init
def init()
Definition: tests.py:58