ManeuverParser#

class ManeuverParser#

Bases: object

Parses and manages an ordered list of finite-burn Maneuver objects.

Maneuvers can be loaded from a comma-delimited file via _parse_maneuver_spec(), or built and stored programmatically through get_burns() / set_burns(). An individual burn can be replaced in-place by matching on start time with _update_burn_by_start_time().

Parameters:

None

Notes

The internal burn list is accessible and replaceable via get_burns() and set_burns(). The file-based parser expects a specific comma-delimited column layout; see _parse_maneuver_spec() for details.

See also

scarabaeus.Maneuver

Finite-burn maneuver data container parsed by this class.

scarabaeus.FiniteBurn

Force model that consumes Maneuver objects during propagation.

Examples

parser = ManeuverParser()
with open("maneuvers.csv") as fh:
    burns = parser._parse_maneuver_spec(fh)

Methods

get_burns()

Return the current list of Maneuver objects.

set_burns(burns)

Replace the internal burn list.

get_burns() list#

Return the current list of Maneuver objects.

Return type:

list of Maneuver

set_burns(burns) None#

Replace the internal burn list.

Parameters:

burns (iterable of Maneuver) – New collection of maneuvers. Converted to a plain list on assignment.