Skip to content

Commit

Permalink
Small docstrings update
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicDirkx committed Dec 9, 2023
1 parent 57fd137 commit 469fddb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tudatpy/kernel/expose_astro/expose_element_conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void expose_element_conversion(py::module &m) {
&toec::convertKeplerianToModifiedEquinoctialElements< double > ),
py::arg("keplerian_elements"),
py::arg("singularity_at_zero_inclination"),
get_docstring("keplerian_to_mee").c_str());
get_docstring("keplerian_to_mee_manual_singularity").c_str());

m.def("keplerian_to_mee",
py::overload_cast< const Eigen::Vector6d& >(
Expand Down
4 changes: 0 additions & 4 deletions tudatpy/kernel/expose_astro/expose_ephemerides.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,6 @@ void expose_ephemerides(py::module &m) {
.value("interpolated_tle_ephemeris", tss::interpolated_tle_ephemeris)
.value("custom_ephemeris", tss::custom_ephemeris);

py::class_<te::RotationalEphemeris,
std::shared_ptr<te::RotationalEphemeris>>
RotationalEphemeris_(m, "RotationalEphemeris");

//////////////////////////////////////////////////////////////////////////////
// constantEphemeris.h
//////////////////////////////////////////////////////////////////////////////
Expand Down
23 changes: 15 additions & 8 deletions tudatpy/kernel/expose_numerical_simulation/expose_environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,20 +479,27 @@ void expose_environment(py::module &m) {


py::class_<te::RotationalEphemeris,
std::shared_ptr<te::RotationalEphemeris>>(m, "RotationalEphemeris")
std::shared_ptr<te::RotationalEphemeris>>(m, "RotationalEphemeris", get_docstring("RotationalEphemeris").c_str())
.def("body_fixed_to_inertial_rotation", &te::RotationalEphemeris::getRotationMatrixToBaseFrame,
py::arg( "time" ) )
py::arg( "time" ),
get_docstring("RotationalEphemeris.body_fixed_to_inertial_rotation").c_str() )
.def("time_derivative_body_fixed_to_inertial_rotation", &te::RotationalEphemeris::getDerivativeOfRotationToBaseFrame,
py::arg( "time" ) )
py::arg( "time" ),
get_docstring("RotationalEphemeris.time_derivative_body_fixed_to_inertial_rotation").c_str() )
.def("inertial_to_body_fixed_rotation", &te::RotationalEphemeris::getRotationMatrixToTargetFrame,
py::arg( "time" ) )
py::arg( "time" ),
get_docstring("RotationalEphemeris.inertial_to_body_fixed_rotation").c_str() )
.def("time_derivative_inertial_to_body_fixed_rotation", &te::RotationalEphemeris::getDerivativeOfRotationToTargetFrame,
py::arg( "time" ) )
py::arg( "time" ),
get_docstring("RotationalEphemeris.time_derivative_inertial_to_body_fixed_rotation").c_str() )
.def("angular_velocity_in_body_fixed_frame", &te::RotationalEphemeris::getRotationalVelocityVectorInTargetFrame,
py::arg( "time" ) )
py::arg( "time" ),
get_docstring("RotationalEphemeris.angular_velocity_in_body_fixed_frame").c_str() )
.def("angular_velocity_in_inertial_frame", &te::RotationalEphemeris::getRotationalVelocityVectorInBaseFrame,
py::arg( "time" ) )
.def_property_readonly("body_fixed_frame_name", &te::RotationalEphemeris::getTargetFrameOrientation );
py::arg( "time" ),
get_docstring("RotationalEphemeris.angular_velocity_in_inertial_frame").c_str() )
.def_property_readonly("body_fixed_frame_name", &te::RotationalEphemeris::getTargetFrameOrientation,
get_docstring("RotationalEphemeris.body_fixed_frame_name").c_str() );


m.def("transform_to_inertial_orientation",
Expand Down

0 comments on commit 469fddb

Please sign in to comment.