Skip to content

Commit

Permalink
Corrected Spice ephemeris exposure; added docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicDirkx committed Mar 20, 2024
1 parent 31a9b78 commit b8a4bc7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
46 changes: 23 additions & 23 deletions tudatpy/kernel/expose_interface/expose_spice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,29 +194,29 @@ namespace spice {
&tudat::spice_interface::clearSpiceKernels,
get_docstring("clear_kernels").c_str());

py::class_<tudat::ephemerides::SpiceEphemeris,
std::shared_ptr<tudat::ephemerides::SpiceEphemeris>>(m, "SpiceEphemeris",
get_docstring("SpiceEphemeris").c_str())
.def(py::init<
const std::string &,
const std::string &,
const bool,
const bool,
const bool,
const std::string &,
const double>(),
py::arg("target_body_name"),
py::arg("observer_body_name"),
py::arg("correct_for_stellar_aberration") = false,
py::arg("correct_for_light_time_aberration") = true,
py::arg("converge_light_time_aberration") = false,
py::arg("reference_frame_name") = "ECLIPJ2000",
py::arg("reference_julian_day") = tba::JULIAN_DAY_ON_J2000,
get_docstring("SpiceEphemeris.ctor").c_str())
.def("get_cartesian_state",
&tudat::ephemerides::SpiceEphemeris::getCartesianState,
py::arg("seconds_since_epoch"),
get_docstring("SpiceEphemeris.get_cartesian_state").c_str());
// py::class_<tudat::ephemerides::SpiceEphemeris,
// std::shared_ptr<tudat::ephemerides::SpiceEphemeris>>(m, "SpiceEphemeris",
// get_docstring("SpiceEphemeris").c_str())
// .def(py::init<
// const std::string &,
// const std::string &,
// const bool,
// const bool,
// const bool,
// const std::string &,
// const double>(),
// py::arg("target_body_name"),
// py::arg("observer_body_name"),
// py::arg("correct_for_stellar_aberration") = false,
// py::arg("correct_for_light_time_aberration") = true,
// py::arg("converge_light_time_aberration") = false,
// py::arg("reference_frame_name") = "ECLIPJ2000",
// py::arg("reference_julian_day") = tba::JULIAN_DAY_ON_J2000,
// get_docstring("SpiceEphemeris.ctor").c_str())
// .def("get_cartesian_state",
// &tudat::ephemerides::SpiceEphemeris::getCartesianState,
// py::arg("seconds_since_epoch"),
// get_docstring("SpiceEphemeris.get_cartesian_state").c_str());

};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ namespace environment_setup {
8));

m.def("create_body_ephemeris", &tss::createBodyEphemeris< double, TIME_TYPE >,
py::arg("ephemeris_settings"), py::arg("body_name"));
py::arg("ephemeris_settings"), py::arg("body_name"),
get_docstring("create_body_ephemeris").c_str());

m.def("create_ground_station_ephemeris",
py::overload_cast< const std::shared_ptr< tss::Body >, const std::string& >(
Expand Down

0 comments on commit b8a4bc7

Please sign in to comment.