def _find_type(value, fmts=['FIFF_'], exclude=['FIFF_UNIT']):
 value = int(value)
 vals = [k for (k, v) in iteritems(FIFF) if ((v == value) and any(((fmt in k) for fmt in fmts)) and (not any(((exc in k) for exc in exclude))))]
 if (len(vals) == 0):
  vals = ['???']
 return vals

def _find_type ( value , fmts = [ 'FIFF_' ] , exclude = [ 'FIFF_UNIT' ] ) : value = int ( value ) vals = [ k for ( k , v ) in iteritems ( FIFF ) if ( ( v == value ) and any ( ( ( fmt in k ) for fmt in fmts ) ) and ( not any ( ( ( exc in k ) for exc in exclude ) ) ) ) ] if ( len ( vals ) == 0 ) : vals = [ '???' ] return vals
find matching values .