23 #include "pybind11/pybind11.h"
42 using namespace pybind11::literals;
56 py::module::import(
"lsst.daf.base");
57 py::module::import(
"lsst.geom");
58 py::module::import(
"lsst.afw.coord.observatory");
59 py::module::import(
"lsst.afw.coord.weather");
60 py::module::import(
"lsst.afw.typehandling");
66 py::enum_<RotType>(mod,
"RotType")
67 .value(
"UNKNOWN", RotType::UNKNOWN)
68 .value(
"SKY", RotType::SKY)
69 .value(
"HORIZON", RotType::HORIZON)
70 .value(
"MOUNT", RotType::MOUNT)
78 "exposureId"_a = 0,
"exposureTime"_a = nan,
"darkTime"_a = nan,
"date"_a =
daf::base::DateTime(),
81 "boresightRotAngle"_a = nanAngle,
"rotType"_a = RotType::UNKNOWN,
84 cls.def(py::init<daf::base::PropertySet const &>(),
"metadata"_a);
85 cls.def(py::init<VisitInfo const &>(),
"visitInfo"_a);
87 table::io::python::addPersistableMethods<VisitInfo>(
cls);
96 cls.def(
"getExposureId", &VisitInfo::getExposureId);
97 cls.def(
"getExposureTime", &VisitInfo::getExposureTime);
98 cls.def(
"getDarkTime", &VisitInfo::getDarkTime);
99 cls.def(
"getDate", &VisitInfo::getDate);
100 cls.def(
"getUt1", &VisitInfo::getUt1);
101 cls.def(
"getEra", &VisitInfo::getEra);
102 cls.def(
"getBoresightRaDec", &VisitInfo::getBoresightRaDec);
103 cls.def(
"getBoresightAzAlt", &VisitInfo::getBoresightAzAlt);
104 cls.def(
"getBoresightAirmass", &VisitInfo::getBoresightAirmass);
105 cls.def(
"getBoresightParAngle", &VisitInfo::getBoresightParAngle);
106 cls.def(
"getBoresightRotAngle", &VisitInfo::getBoresightRotAngle);
107 cls.def(
"getRotType", &VisitInfo::getRotType);
108 cls.def(
"getObservatory", &VisitInfo::getObservatory);
109 cls.def(
"getWeather", &VisitInfo::getWeather);
110 cls.def(
"isPersistable", &VisitInfo::isPersistable);
111 cls.def(
"getLocalEra", &VisitInfo::getLocalEra);
112 cls.def(
"getBoresightHourAngle", &VisitInfo::getBoresightHourAngle);