24 #include <pybind11/pybind11.h> 36 py::module::import(
"astshim.mapping");
38 py::class_<SphMap, std::shared_ptr<SphMap>, Mapping>
cls(mod,
"SphMap");
40 cls.def(py::init<std::string const &>(),
"options"_a =
"");
41 cls.def(py::init<SphMap const &>());
43 cls.def_property_readonly(
"unitRadius", &SphMap::getUnitRadius);
44 cls.def_property_readonly(
"polarLong", &SphMap::getPolarLong);
46 cls.def(
"copy", &SphMap::copy);
AST wrapper classes and functions.
PYBIND11_MODULE(camera, mod)