Changeset 835:253df5ee72c5 for src/mlx


Ignore:
Timestamp:
04/17/17 06:55:15 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Function to extract the index of a flight type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/const.py

    r834 r835  
    247247           if flightType in _flightTypeStrings else None
    248248
     249def flightType2index(flightType):
     250    """Get the index of the given flight type according to the list above"""
     251    return flightTypes.index(flightType)
     252
    249253#-------------------------------------------------------------------------------
    250254
Note: See TracChangeset for help on using the changeset viewer.