def _check_mat_struct(fname):
 if (not check_version('scipy', '0.12')):
  raise RuntimeError('scipy >= 0.12 must be installed for reading EEGLAB files.')
 from scipy import io
 mat = io.whosmat(fname, struct_as_record=False, squeeze_me=True)
 if ('ALLEEG' in mat[0]):
  raise NotImplementedError('Loading an ALLEEG array is not supported. Please contactmne-python developers for more information.')
 elif ('EEG' not in mat[0]):
  msg = 'Unknown array in the .set file.'
  raise ValueError(msg)

def _check_mat_struct ( fname ) : if ( not check_version ( 'scipy' , '0.12' ) ) : raise RuntimeError ( 'scipy >= 0.12 must be installed for reading EEGLAB files.' ) from scipy import io mat = io . whosmat ( fname , struct_as_record = False , squeeze_me = True ) if ( 'ALLEEG' in mat [ 0 ] ) : raise NotImplementedError ( 'Loading an ALLEEG array is not supported. Please contactmne-python developers for more information.' ) elif ( 'EEG' not in mat [ 0 ] ) : msg = 'Unknown array in the .set file.' raise ValueError ( msg )
check if the mat struct contains eeg .