def map_process(args):
    '''process for a graph'''
    from mavflightview import mavflightview_mav, mavflightview_options
    mestate.mlog.reduce_by_flightmodes(mestate.flightmode_selections)
    
    options = mavflightview_options()
    options.condition = mestate.settings.condition
    if len(args) > 0:
        options.types = ','.join(args)
    mavflightview_mav(mestate.mlog, options)
def map_process ( args ) : from mavflightview import mavflightview_mav , mavflightview_options mestate . mlog . reduce_by_flightmodes ( mestate . flightmode_selections ) options = mavflightview_options ( ) options . condition = mestate . settings . condition if len ( args ) > 0 : options . types = ',' . join ( args ) mavflightview_mav ( mestate . mlog , options )
process for a graph