fastoad.models.performances.mission.segments.registered.mass_input module
Class for specifying input mass at “any” point in the mission.
- class fastoad.models.performances.mission.segments.registered.mass_input.MassTargetSegment(name: str = '', target: ~fastoad.model_base.flight_point.FlightPoint = <object object>, isa_offset: float = 0.0)[source]
Bases:
AbstractFlightSegment
Class that simply sets a target mass.
compute_from()
returns a 1-row dataframe that is the start point with mass set to provided target mass.class:~fastoad.models.performances.mission.base.FlightSequence ensures that mass is consistent for segments prior to this one.
- compute_from_start_to_target(start: FlightPoint, target: FlightPoint) DataFrame [source]
Here should come the implementation for computing flight points between start and target flight points.
- Parameters:
start –
target – Definition of segment target
- Returns:
a pandas DataFrame where column names match fields of
FlightPoint
- property target: FlightPoint
The base class of the class hierarchy.
When called, it accepts no arguments and returns a new featureless instance that has no instance attributes and cannot be given any.