25 #include <pybind11/pybind11.h> 26 #include <pybind11/stl.h> 38 py::module::import(
"astshim.frame");
40 py::class_<TimeFrame, std::shared_ptr<TimeFrame>, Frame>
cls(mod,
"TimeFrame");
42 cls.def(py::init<std::string const &>(),
"options"_a =
"");
43 cls.def(py::init<TimeFrame const &>());
45 cls.def_property(
"alignTimeScale", &TimeFrame::getAlignTimeScale, &TimeFrame::setAlignTimeScale);
46 cls.def_property(
"ltOffset", &TimeFrame::getLTOffset, &TimeFrame::setLTOffset);
47 cls.def_property(
"timeOrigin", &TimeFrame::getTimeOrigin, &TimeFrame::setTimeOrigin);
48 cls.def_property(
"timeScale", &TimeFrame::getTimeScale, &TimeFrame::setTimeScale);
50 cls.def(
"copy", &TimeFrame::copy);
51 cls.def(
"currentTime", &TimeFrame::currentTime);
AST wrapper classes and functions.
PYBIND11_MODULE(camera, mod)