24 #include "pybind11/pybind11.h"
29 using namespace pybind11::literals;
36 using PyUnitSystem = py::class_<UnitSystem, std::shared_ptr<UnitSystem>>;
37 using PyLocalUnitTransform = py::class_<LocalUnitTransform, std::shared_ptr<LocalUnitTransform>>;
40 py::module::import(
"lsst.afw.image");
46 PyUnitSystem clsUnitSystem(mod,
"UnitSystem");
51 "position"_a,
"calibIn"_a,
"flux"_a);
52 clsUnitSystem.def(py::init<geom::SpherePoint const &, Scalar>(),
"position"_a,
"mag"_a);
55 "wcs"_a,
"photoCalib"_a);
56 clsUnitSystem.def(
py::init<afw::image::Exposure<float>
const &>(),
"exposure"_a);
57 clsUnitSystem.def(
py::init<afw::image::Exposure<double>
const &>(),
"exposure"_a);
59 PyLocalUnitTransform clsLocalUnitTransform(mod,
"LocalUnitTransform");
60 clsLocalUnitTransform.def_readonly(
"geometric", &LocalUnitTransform::geometric);
61 clsLocalUnitTransform.def_readonly(
"flux", &LocalUnitTransform::flux);
62 clsLocalUnitTransform.def_readonly(
"sb", &LocalUnitTransform::sb);
63 clsLocalUnitTransform.def(py::init<geom::Point2D const &, UnitSystem const &, UnitSystem const &>(),
64 "sourcePixel"_a,
"source"_a,
"destination"_a);
65 clsLocalUnitTransform.def(py::init<>());