Changeset 1140:ca835f7ae311


Ignore:
Timestamp:
04/21/24 14:00:33 (7 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Function to get the adult passenger weight based on the flight type (re #386)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/const.py

    r1138 r1140  
    599599
    600600#-------------------------------------------------------------------------------
     601
     602def getPassengerWeight(flightType):
     603    """Get the passenger weight for the given flight type."""
     604    return WEIGHT_PASSENGER_CHARTER if flightType==FLIGHTTYPE_CHARTER \
     605        else WEIGHT_PASSENGER
     606
     607
     608#-------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.