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

Go to the source code of this file.

Functions

 PYBIND11_MODULE (distortion, mod)
 

Function Documentation

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( distortion  ,
mod   
)

Definition at line 36 of file distortion.cc.

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