Skip to content

Commit

Permalink
Update with last version of develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsoSR committed Jan 24, 2025
1 parent 05ad827 commit 002d00a
Show file tree
Hide file tree
Showing 55 changed files with 780 additions and 884 deletions.
10 changes: 6 additions & 4 deletions tudatpy/kernel/expose_astro/expose_element_conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* http://tudat.tudelft.nl/LICENSE.
*/


#include "expose_element_conversion.h"

#include <pybind11/eigen.h>
Expand All @@ -20,7 +21,6 @@
#include <tudat/interface/spice/spiceInterface.h>
#include <tudat/math/basic.h>


namespace py = pybind11;
namespace toec = tudat::orbital_element_conversions;
namespace tcc = tudat::coordinate_conversions;
Expand Down Expand Up @@ -1205,7 +1205,8 @@ numpy.ndarray
*/
m.def("teme_to_j2000", &te::getRotationMatrixFromTemeToJ2000,
py::arg("epoch"), R"doc(
py::arg("epoch"),
R"doc(
Computes the rotation matrix from the TEME (True Equator Mean Equinox) frame to the J2000 frame, using the following:
Expand All @@ -1231,7 +1232,8 @@ numpy.ndarray
)doc");

m.def("j2000_to_teme", &te::getRotationMatrixFromTemeToJ2000,
py::arg("epoch"), R"doc(
py::arg("epoch"),
R"doc(
Computes the rotation matrix from the J2000 to the TEME (True Equator Mean Equinox) frame, which is the inverse of the :func:`~teme_to_j2000` function.
Expand Down Expand Up @@ -1319,5 +1321,5 @@ numpy.ndarray
)doc");
}
} // namespace element_conversion
} // namespace astro
} // namespace astro
} // namespace tudatpy
442 changes: 221 additions & 221 deletions tudatpy/kernel/expose_astro/expose_ephemerides.cpp

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tudatpy/kernel/expose_astro/expose_frame_conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* http://tudat.tudelft.nl/LICENSE.
*/


#include "expose_frame_conversion.h"

#include <pybind11/eigen.h>
Expand All @@ -17,7 +18,6 @@
#include <tudat/astro/ephemerides/rotationalEphemeris.h>
#include <tudat/astro/reference_frames.h>


namespace trf = tudat::reference_frames;
namespace te = tudat::ephemerides;

Expand Down Expand Up @@ -315,5 +315,5 @@ Euler angle rotation (see Archinal et al. [1]_).
}

} // namespace frame_conversion
} // namespace astro
} // namespace astro
} // namespace tudatpy
3 changes: 1 addition & 2 deletions tudatpy/kernel/expose_astro/expose_fundamentals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <pybind11/pybind11.h>
#include <tudat/astro/basic_astro.h>


namespace py = pybind11;
namespace tmg = tudat::mission_geometry;

Expand Down Expand Up @@ -62,5 +61,5 @@ float
}

} // namespace fundamentals
} // namespace astro
} // namespace astro
} // namespace tudatpy
4 changes: 2 additions & 2 deletions tudatpy/kernel/expose_astro/expose_gravitation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* http://tudat.tudelft.nl/LICENSE.
*/


#include "expose_gravitation.h"

#include <pybind11/eigen.h>
Expand All @@ -16,7 +17,6 @@
#include <tudat/astro/gravitation.h>
#include <tudat/math/basic.h>


namespace py = pybind11;
namespace tg = tudat::gravitation;
namespace tbm = tudat::basic_mathematics;
Expand Down Expand Up @@ -194,5 +194,5 @@ tuple[numpy.ndarray, numpy.ndarray]


} // namespace gravitation
} // namespace astro
} // namespace astro
} // namespace tudatpy
4 changes: 2 additions & 2 deletions tudatpy/kernel/expose_astro/expose_polyhedron_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* http://tudat.tudelft.nl/LICENSE.
*/


#include "expose_polyhedron_utilities.h"

#include <pybind11/eigen.h>
Expand All @@ -16,7 +17,6 @@
#include <pybind11/pybind11.h>
#include <tudat/astro/basic_astro/polyhedronFuntions.h>


namespace tba = tudat::basic_astrodynamics;

namespace py = pybind11;
Expand Down Expand Up @@ -247,5 +247,5 @@ numpy.ndarray
}

} // namespace polyhedron_utilities
} // namespace astro
} // namespace astro
} // namespace tudatpy
56 changes: 25 additions & 31 deletions tudatpy/kernel/expose_astro/expose_time_conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,8 @@ In this example, the number of seconds that have elapsed at the Julian day `2451
// Time scales conversion (inputs and outputs are always time in
// seconds since J2000)
m.def("TCB_to_TDB", &tba::convertTcbToTdb<double>,
py::arg("TCB_time"), R"doc(
py::arg("TCB_time"),
R"doc(
Convert time from the TCB scale to the TDB scale.
Expand Down Expand Up @@ -735,7 +736,8 @@ Then, this date and time is converted from the TCB scale to the TDB scale.
)doc");

m.def("TDB_to_TCB", &tba::convertTdbToTcb<double>,
py::arg("TDB_time"), R"doc(
py::arg("TDB_time"),
R"doc(
Convert time from the TBD scale to the TCB scale.
Expand All @@ -761,7 +763,8 @@ float
)doc");

m.def("TCG_to_TT", &tba::convertTcgToTt<double>,
py::arg("TCG_time"), R"doc(
py::arg("TCG_time"),
R"doc(
Convert time from the TCG scale to the TT scale.
Expand All @@ -784,7 +787,8 @@ float
)doc");

m.def("TT_to_TCG", &tba::convertTtToTcg<double>,
py::arg("TT_time"), R"doc(
py::arg("TT_time"),
R"doc(
Convert time from the TT scale to the TCG scale.
Expand All @@ -810,7 +814,8 @@ float
)doc");

m.def("TAI_to_TT", &tba::convertTAItoTT<double>,
py::arg("TAI_time"), R"doc(
py::arg("TAI_time"),
R"doc(
Convert time from the TAI scale to the TT scale.
Expand All @@ -833,7 +838,8 @@ float
)doc");

m.def("TT_to_TAI", &tba::convertTTtoTAI<double>,
py::arg("TT_time"), R"doc(
py::arg("TT_time"),
R"doc(
Convert time from the TT scale to the TAI scale.
Expand Down Expand Up @@ -949,20 +955,15 @@ float
Enumeration of available time scales between which the :class:`~TimeScaleConverter` can automaticaly convert.
)doc")
.value("tai_scale", tba::tai_scale,
R"doc(
.value("tai_scale", tba::tai_scale, R"doc(
)doc")
.value("tt_scale", tba::tt_scale,
R"doc(
.value("tt_scale", tba::tt_scale, R"doc(
)doc")
.value("tdb_scale", tba::tdb_scale,
R"doc(
.value("tdb_scale", tba::tdb_scale, R"doc(
)doc")
.value("utc_scale", tba::utc_scale,
R"doc(
.value("utc_scale", tba::utc_scale, R"doc(
)doc")
.value("ut1_scale", tba::ut1_scale,
R"doc(
.value("ut1_scale", tba::ut1_scale, R"doc(
)doc")
.export_values();

Expand Down Expand Up @@ -1020,8 +1021,7 @@ TimeScaleConverter
Eigen::Vector3d::Zero());


py::class_<tba::DateTime>(m, "DateTime",
R"doc(
py::class_<tba::DateTime>(m, "DateTime", R"doc(
Class to store a calendar date and time of day, with high resolution.
Expand All @@ -1042,53 +1042,47 @@ TimeScaleConverter
py::arg("hour") = 12, py::arg("minute") = 0,
py::arg("seconds") = 0.0L)
.def_property("year", &tba::DateTime::getYear,
&tba::DateTime::setYear,
R"doc(
&tba::DateTime::setYear, R"doc(
Calendar year
:type: int
)doc")
.def_property("month", &tba::DateTime::getMonth,
&tba::DateTime::setMonth,
R"doc(
&tba::DateTime::setMonth, R"doc(
Calendar month (value must be 1-12)
:type: int
)doc")
.def_property("day", &tba::DateTime::getDay,
&tba::DateTime::setDay,
R"doc(
&tba::DateTime::setDay, R"doc(
Calendar day in current month, value must be larger than 0, and smaller or equal to the number of days in the month
:type: int
)doc")
.def_property("hour", &tba::DateTime::getHour,
&tba::DateTime::setHour,
R"doc(
&tba::DateTime::setHour, R"doc(
Full hours into the current day (value must be 0-23)
:type: int
)doc")
.def_property("minute", &tba::DateTime::getMinute,
&tba::DateTime::setMinute,
R"doc(
&tba::DateTime::setMinute, R"doc(
Full minutes into the current hour (value must be 0-59)
:type: int
)doc")
.def_property("seconds", &tba::DateTime::getSeconds,
&tba::DateTime::setSeconds,
R"doc(
&tba::DateTime::setSeconds, R"doc(
Number of seconds into the current minute. Note that this value is stored as ``long double`` in Tudat, which may be 64-bit or 80-bit (16 or 19 digits) depending on the compiler used.
Expand Down Expand Up @@ -1331,5 +1325,5 @@ DateTime
tba::JULIAN_DAY_ON_J2000);
}
} // namespace time_conversion
} // namespace astro
} // namespace astro
} // namespace tudatpy
2 changes: 1 addition & 1 deletion tudatpy/kernel/expose_astro/expose_two_body_dynamics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
* http://tudat.tudelft.nl/LICENSE.
*/


#include "expose_two_body_dynamics.h"

#include <pybind11/eigen.h>
#include <pybind11/pybind11.h>
#include <tudat/astro/basic_astro.h>
#include <tudat/astro/mission_segments.h>


namespace py = pybind11;
namespace tms = tudat::mission_segments;
namespace trf = tudat::root_finders;
Expand Down
Loading

0 comments on commit 002d00a

Please sign in to comment.