Skip to content

Commit

Permalink
refactor: remove pybound methods from Celestial that aren't usable …
Browse files Browse the repository at this point in the history
…in python (#205)

refactor: remove pybound methods that aren't usable in python
  • Loading branch information
apaletta3 authored Feb 16, 2024
1 parent 66bce43 commit a177c71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,12 @@ inline void OpenSpaceToolkitPhysicsPy_Environment_Object_Celestial(pybind11::mod
.def("get_position_in", &Celestial::getPositionIn, arg("frame"), arg("instant"))
.def("get_transform_to", &Celestial::getTransformTo, arg("frame"), arg("instant"))
.def("get_axes_in", &Celestial::getAxesIn, arg("frame"), arg("instant"))
.def("get_gravitational_field_at", &Celestial::getGravitationalFieldAt, arg("position"), arg("instant"))
.def("get_magnetic_field_at", &Celestial::getMagneticFieldAt, arg("position"), arg("instant"))
.def("get_atmospheric_density_at", &Celestial::getAtmosphericDensityAt, arg("position"), arg("instant"))

// TBI: whenenver data::Vector and data::Scalar is supported in Python
// .def("get_gravitational_field_at", &Celestial::getGravitationalFieldAt, arg("position"), arg("instant"))
// .def("get_magnetic_field_at", &Celestial::getMagneticFieldAt, arg("position"), arg("instant"))
// .def("get_atmospheric_density_at", &Celestial::getAtmosphericDensityAt, arg("position"), arg("instant"))

.def("gravitational_model_is_defined", &Celestial::gravitationalModelIsDefined)
.def("magnetic_model_is_defined", &Celestial::magneticModelIsDefined)
.def("atmospheric_model_is_defined", &Celestial::atmosphericModelIsDefined)
Expand Down Expand Up @@ -147,7 +150,6 @@ inline void OpenSpaceToolkitPhysicsPy_Environment_Object_Celestial(pybind11::mod
// Create "celestial" python submodule
auto celestial = aModule.def_submodule("celestial");


// Add objects to python "celestial" submodules
OpenSpaceToolkitPhysicsPy_Environment_Object_Celestial_Earth(celestial);
OpenSpaceToolkitPhysicsPy_Environment_Object_Celestial_Moon(celestial);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,7 @@ using EarthAtmosphericModel = ostk::physics::environment::atmospheric::Earth;

// TEST (OpenSpaceToolkit_Physics_Environment_Object_Celestial, Constructor)
// {

// using ostk::physics::environment::Object ;

// {

// FAIL() ;

// }

// TBM: Constructor tested below, but should be refactored to this test case directly
// }

TEST(OpenSpaceToolkit_Physics_Environment_Object_Celestial, accessModel)
Expand Down

0 comments on commit a177c71

Please sign in to comment.