def has_dataset(name):
 endswith = {'brainstorm': 'MNE_brainstorm-data', 'fake': 'foo', 'misc': 'MNE-misc-data', 'sample': 'MNE-sample-data', 'somato': 'MNE-somato-data', 'spm': 'MNE-spm-face', 'testing': 'MNE-testing-data', 'visual_92_categories': 'visual_92_categories-data'}[name]
 archive_name = None
 if (name == 'brainstorm'):
  archive_name = dict(brainstorm='bst_raw')
 dp = _data_path(download=False, name=name, check_version=False, archive_name=archive_name)
 return dp.endswith(endswith)

def has_dataset ( name ) : endswith = { 'brainstorm' : 'MNE_brainstorm-data' , 'fake' : 'foo' , 'misc' : 'MNE-misc-data' , 'sample' : 'MNE-sample-data' , 'somato' : 'MNE-somato-data' , 'spm' : 'MNE-spm-face' , 'testing' : 'MNE-testing-data' , 'visual_92_categories' : 'visual_92_categories-data' } [ name ] archive_name = None if ( name == 'brainstorm' ) : archive_name = dict ( brainstorm = 'bst_raw' ) dp = _data_path ( download = False , name = name , check_version = False , archive_name = archive_name ) return dp . endswith ( endswith )
helper for dataset presence .