test_planetEphemeris
- test_planetEphemeris.test_module(show_plots, setRAN, setDEC, setLST, setRate)[source]
Module Unit Test
- test_planetEphemeris.test_zero_base_requires_local_body()[source]
Verify that
zeroBaserejects bodies owned by another instance.Validation Test Description
A module configured with Earth and Moon selects Mars as its translational origin. Initialization must stop with a
BasiliskErrorbecause Mars is not propagated by that module instance.
- test_planetEphemeris.test_zero_base_translation()[source]
Verify that
zeroBasetranslates positions and velocities only.Validation Test Description
Two identical modules propagate the same oriented bodies. One retains the default heliocentric origin while the other selects Earth as
zeroBase. The relative outputs are compared with differences of the heliocentric outputs at three simulation times.Test Parameter Discussion
Mixed-case
"EaRtH"verifies case-insensitive body-name matching. The bodies use distinct orbits and attitudes so position, velocity, and orientation behavior are all observable.Description of Variables Being Tested
The test checks
PositionVector,VelocityVector,J20002Pfix,J20002Pfix_dot,computeOrient, andPlanetName.