test_chebyPosEphem

test_chebyPosEphem.sineCosine(show_plots)[source]

Module Unit Test

test_chebyPosEphem.test_chebyPosEphem_record_selection(record_slots, intervals, epoch, expected_record, expected_time)[source]

Evaluate the containing record or nearest endpoint, regardless of storage order.

Unequal interval widths distinguish endpoint distance from midpoint distance. Ties and overlapping coverage retain the first record in array order. Check both position and velocity against independently evaluated polynomials.

test_chebyPosEphem.test_chebyPosEphem_requires_configured_record()[source]

Reject evaluation when every record slot is unused.

test_chebyPosEphem.test_chebyPosEphem_reset_rebuilds_velocity(reset_method, old_count, new_count)[source]

Rebuild derivatives after changing coefficient counts, values, and time radii.

Exercise every record and all three axes through both reset entry points. Compare position and velocity with NumPy’s independent Chebyshev evaluator and derivative at multiple times, including a second reset without changes.

test_chebyPosEphem.test_chebyPosFitAllTest(show_plots, function)[source]

Module Unit Test