LSST Applications g013ef56533+9f8d10900a,g042eb84c57+0e2eed36df,g199a45376c+0ba108daf9,g1fd858c14a+7764c0e026,g210f2d0738+6292f59c20,g262e1987ae+eb08c56cce,g29ae962dfc+d77a92a43c,g2ac17093b6+61d6563b1e,g2b1d02342f+07b2da2e8d,g2cef7863aa+aef1011c0b,g35bb328faa+8c5ae1fdc5,g3fd5ace14f+c094e17511,g47891489e3+b510cb74c0,g4cdb532a89+b2ec8e584f,g511e8cfd20+62c7d99dee,g53246c7159+8c5ae1fdc5,g54cd7ddccb+fd7ad03fde,g64539dfbff+6292f59c20,g67b6fd64d1+b510cb74c0,g67fd3c3899+6292f59c20,g74acd417e5+b03fc43a20,g786e29fd12+668abc6043,g87389fa792+8856018cbb,g89139ef638+b510cb74c0,g8d7436a09f+029887907c,g8ea07a8fe4+760ca7c3fc,g90f42f885a+033b1d468d,g97be763408+f041d91aff,gb8d5351fc1+6292f59c20,gbf99507273+8c5ae1fdc5,gca7fc764a6+b510cb74c0,gce8aa8abaa+8c5ae1fdc5,gd7ef33dd92+b510cb74c0,gdab6d2f7ff+b03fc43a20,ge410e46f29+b510cb74c0,ge68da09559+fa63c3a651,geaed405ab2+c4bbc419c6,gf9a733ac38+8c5ae1fdc5,w.2025.40
LSST Data Management Base Package
Loading...
Searching...
No Matches
frame.cc
Go to the documentation of this file.
1// -*- LSST-C++ -*-
2/*
3 * This file is part of jointcal.
4 *
5 * Developed for the LSST Data Management System.
6 * This product includes software developed by the LSST Project
7 * (https://www.lsst.org).
8 * See the COPYRIGHT file at the top-level directory of this distribution
9 * for details of code ownership.
10 *
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <https://www.gnu.org/licenses/>.
23 */
24
25#include "pybind11/pybind11.h"
26
28
29#include "lsst/jointcal/Frame.h"
30
31namespace py = pybind11;
32using namespace pybind11::literals;
33
34namespace lsst {
35namespace jointcal {
36namespace {
37
38void declareFrame(lsst::cpputils::python::WrapperCollection &wrappers) {
39 using PyFrame = py::classh<Frame>;
40
41 wrappers.wrapType(PyFrame(wrappers.module, "Frame"), [](auto &mod, auto &cls) {
42 cls.def(py::init<Point const &, Point const &>(), "lowerLeft"_a, "upperRight"_a);
43 cpputils::python::addOutputOp(cls, "__str__");
44 });
45}
46} // namespace
47
49 declareFrame(wrappers);
50}
51
52} // namespace jointcal
53} // namespace lsst
A helper class for subdividing pybind11 module across multiple translation units (i....
Definition python.h:242
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
pybind11::module module
The module object passed to the PYBIND11_MODULE block that contains this WrapperCollection.
Definition python.h:448
void wrapFrame(WrapperCollection &wrappers)
Definition frame.cc:48