LSSTApplications  16.0+12,16.0+13,16.0-1-g16dcc35+1,16.0-1-g44ebaf5+1,16.0-1-g4515a79+10,16.0-1-g928b041+1,16.0-1-g943889d+1,16.0-1-g9884240+1,16.0-1-g98efed3+9,16.0-1-gce273f5+1,16.0-19-g2da375352+1,16.0-2-g568a347+8,16.0-2-g839ba83+2,16.0-2-g8827b2c+1,16.0-2-g934b51e+2,16.0-2-g9d5294e+1,16.0-3-g06ec41f+2,16.0-3-g30bbe86+2,16.0-3-g3806c63+1,16.0-3-g5dc86b7+2,16.0-3-gc6a11d1+2,16.0-4-g4dc7b79+2,16.0-4-g50d071e+1,16.0-4-gd6aeece+1,16.0-4-gedb2a3a+2,16.0-5-g0fa37f0+1,16.0-5-g188214f+1,16.0-5-g81851deb+3,16.0-5-gb866ac2+2,16.0-6-g44ca919+1,16.0-6-gce2b4a7+2,16.0-6-gf89f2d9+2,16.0-7-g1411911+2,16.0-7-g2664ab2+1,16.0-7-ge62bbd2a+2,16.0-8-g2ce35ff+2,16.0-8-g7a94e69+2,w.2018.29
LSSTDataManagementBasePackage
frame.cc
Go to the documentation of this file.
1 /*
2  * LSST Data Management System
3  *
4  * This product includes software developed by the
5  * LSST Project (http://www.lsst.org/).
6  * See the COPYRIGHT file
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the LSST License Statement and
19  * the GNU General Public License along with this program. If not,
20  * see <https://www.lsstcorp.org/LegalNotices/>.
21  */
22 
23 #include "pybind11/pybind11.h"
24 
25 #include "lsst/utils/python.h"
26 
27 #include "lsst/jointcal/Frame.h"
28 
29 namespace py = pybind11;
30 using namespace pybind11::literals;
31 
32 namespace lsst {
33 namespace jointcal {
34 namespace {
35 
36 void declareFrame(py::module &mod) {
37  py::class_<Frame, std::shared_ptr<Frame>> cls(mod, "Frame");
38 
39  cls.def(py::init<Point const &, Point const &>(), "lowerLeft"_a, "upperRight"_a);
40 
41  utils::python::addOutputOp(cls, "__str__");
42 }
43 
44 PYBIND11_MODULE(frame, mod) {
45  declareFrame(mod);
46 }
47 } // namespace
48 } // namespace jointcal
49 } // namespace lsst
void addOutputOp(PyClass &cls, std::string const &method)
Add __str__ or __repr__ method implemented by operator<<.
Definition: python.h:82
A base class for image defects.
Definition: cameraGeom.dox:3
PYBIND11_MODULE(cameraSys, mod)
Definition: cameraSys.cc:62