def _check_for_unsupported_ica_channels(picks, info):
 if (picks is None):
  return
 elif (len(picks) == 0):
  raise ValueError('No channels provided to ICA')
 types = (_DATA_CH_TYPES_SPLIT + ['eog'])
 chs = list(set([channel_type(info, j) for j in picks]))
 check = all([(ch in types) for ch in chs])
 if (not check):
  raise ValueError('Invalid channel type(s) passed for ICA.\nOnly the following channels are supported {0}\nFollowing types were passed {1}\n'.format(types, chs))

def _check_for_unsupported_ica_channels ( picks , info ) : if ( picks is None ) : return elif ( len ( picks ) == 0 ) : raise ValueError ( 'No channels provided to ICA' ) types = ( _DATA_CH_TYPES_SPLIT + [ 'eog' ] ) chs = list ( set ( [ channel_type ( info , j ) for j in picks ] ) ) check = all ( [ ( ch in types ) for ch in chs ] ) if ( not check ) : raise ValueError ( 'Invalid channel type(s) passed for ICA.\nOnly the following channels are supported {0}\nFollowing types were passed {1}\n' . format ( types , chs ) )
check for channels in picks that are not considered valid channels .