LSST Applications g063fba187b+fee0456c91,g0f08755f38+ea96e5a5a3,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+90257ff92a,g20f6ffc8e0+ea96e5a5a3,g217e2c1bcf+937a289c59,g28da252d5a+daa7da44eb,g2bbee38e9b+253935c60e,g2bc492864f+253935c60e,g3156d2b45e+6e55a43351,g32e5bea42b+31359a2a7a,g347aa1857d+253935c60e,g35bb328faa+a8ce1bb630,g3a166c0a6a+253935c60e,g3b1af351f3+a8ce1bb630,g3e281a1b8c+c5dd892a6c,g414038480c+416496e02f,g41af890bb2+afe91b1188,g599934f4f4+0db33f7991,g7af13505b9+e36de7bce6,g80478fca09+da231ba887,g82479be7b0+a4516e59e3,g858d7b2824+ea96e5a5a3,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,ga5288a1d22+bc6ab8dfbd,gb58c049af0+d64f4d3760,gc28159a63d+253935c60e,gcab2d0539d+3f2b72788c,gcf0d15dbbd+4ea9c45075,gda6a2b7d83+4ea9c45075,gdaeeff99f8+1711a396fd,ge79ae78c31+253935c60e,gef2f8181fd+3031e3cf99,gf0baf85859+c1f95f4921,gfa517265be+ea96e5a5a3,gfa999e8aa5+17cd334064,w.2024.50
LSST Data Management Base Package
Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs | Functions
lsst::meas::extensions::trailedSources Namespace Reference

Namespaces

namespace  NaivePlugin
 
namespace  utils
 
namespace  VeresPlugin
 
namespace  version
 

Classes

class  VeresModel
 Implementation of an axisymmetric 2D Gaussian convolved with a line – a model for a fast-moving, trailed-source (Veres et al. More...
 

Typedefs

using ImageF = afw::image::Image<float>
 
using ExposureF = afw::image::Exposure<float>
 

Functions

void wrapVeresModel (lsst::cpputils::python::WrapperCollection &wrappers)
 
 PYBIND11_MODULE (_trailedSources, mod)
 

Detailed Description

lsst.meas.extensions.trailedSources

Typedef Documentation

◆ ExposureF

Definition at line 36 of file VeresModel.cc.

◆ ImageF

Definition at line 35 of file VeresModel.cc.

Function Documentation

◆ PYBIND11_MODULE()

lsst::meas::extensions::trailedSources::PYBIND11_MODULE ( _trailedSources ,
mod  )

Definition at line 36 of file _trailedSources.cc.

36 {
37 lsst::cpputils::python::WrapperCollection wrappers(mod, "lsst.meas.extensions.trailedSources");
38 wrapVeresModel(wrappers);
39 wrappers.finish();
40}
A helper class for subdividing pybind11 module across multiple translation units (i....
Definition python.h:242
void wrapVeresModel(lsst::cpputils::python::WrapperCollection &wrappers)

◆ wrapVeresModel()

void lsst::meas::extensions::trailedSources::wrapVeresModel ( lsst::cpputils::python::WrapperCollection & wrappers)

Definition at line 41 of file _VeresModel.cc.

41 {
42
43 wrappers.addSignatureDependency("lsst.geom");
44 wrappers.addSignatureDependency("lsst.afw.image");
45
46 wrappers.wrapType(
47 py::class_<VeresModel, std::shared_ptr<VeresModel>>(wrappers.module, "VeresModel"),
48 [](auto & mod, auto & cls) {
49 cls.def(py::init<afw::image::Exposure<float> const&>(), "data"_a);
50 cls.def("__call__", &VeresModel::operator(), py::is_operator(), "params"_a);
51 cls.def("gradient", &VeresModel::gradient, "params"_a);
52 cls.def("computeFluxWithGradient", &VeresModel::computeFluxWithGradient, "params"_a);
53 cls.def("computeModelImage", &VeresModel::computeModelImage, "params"_a);
54 cls.def_property_readonly("sigma", &VeresModel::getSigma);
55 });
56}
void addSignatureDependency(std::string const &name)
Indicate an external module that provides a type used in function/method signatures.
Definition python.h:357
PyType wrapType(PyType cls, ClassWrapperCallback function, bool setModuleName=true)
Add a type (class or enum) wrapper, deferring method and other attribute definitions until finish() i...
Definition python.h:391
Implementation of an axisymmetric 2D Gaussian convolved with a line – a model for a fast-moving,...
Definition VeresModel.h:47