Skip to main content

Module rocketpy

Module rocketpy 

Source
Expand description

Reading RocketPy’s generator output into the harness’s shapes.

The fixtures under validation/fixtures/ are written by the scripts under validation/oracles/rocketpy/, in each script’s own shape. This module is the only place that knows those shapes: it turns one of the generator’s cases into a Reference (what the oracle said, with a source for every value) and the inputs hpr must fly, a DescentSetup for recovery.py’s descents or a WholeFlightSetup for flight.py’s flights from the pad.

Loft lesson L75: the inputs come from the reference’s own record of what it flew, never from an hpr output, so a case cannot quietly compare hpr against itself. That includes which rocket it flew and what that rocket weighed, which the harness checks rather than trusts.

Functions§

descent_case
The case named case of a recovery-descent fixture, as the oracle’s answers and the inputs it flew. None if the document has no such case, does not name the run that produced it, or is not that fixture’s shape.
whole_flight_case
The case named case of a whole-flight fixture (flight.py’s), as the oracle’s answers and the inputs it flew: the site and wind, the rail, the declared drag table (or, in an own-drag fixture, where the example’s own drag came from) with the reference area it was flown on, the dry mass, and the parachutes in the order they open. None if the document has no such case, does not name the run that produced it, or is not that shape.