@verbose
def fetch_hcp_mmp_parcellation(subjects_dir=None, verbose=None):
 subjects_dir = get_subjects_dir(subjects_dir, raise_error=True)
 destination = op.join(subjects_dir, 'fsaverage', 'label')
 fnames = [op.join(destination, 'lh.HCPMMP1.annot'), op.join(destination, 'rh.HCPMMP1.annot')]
 if all((op.isfile(fname) for fname in fnames)):
  return
 if ('--accept-hcpmmp-license' in sys.argv):
  answer = 'y'
 else:
  answer = input(('%s\nAgree (y/[n])? ' % _hcp_mmp_license_text))
 if (answer.lower() != 'y'):
  raise RuntimeError('You must agree to the license to use this dataset')
 _fetch_file('https://ndownloader.figshare.com/files/5528816', fnames[0], hash_='46a102b59b2fb1bb4bd62d51bf02e975')
 _fetch_file('https://ndownloader.figshare.com/files/5528819', fnames[1], hash_='75e96b331940227bbcb07c1c791c2463')

@ verbose def fetch_hcp_mmp_parcellation ( subjects_dir = None , verbose = None ) : subjects_dir = get_subjects_dir ( subjects_dir , raise_error = True ) destination = op . join ( subjects_dir , 'fsaverage' , 'label' ) fnames = [ op . join ( destination , 'lh.HCPMMP1.annot' ) , op . join ( destination , 'rh.HCPMMP1.annot' ) ] if all ( ( op . isfile ( fname ) for fname in fnames ) ) : return if ( '--accept-hcpmmp-license' in sys . argv ) : answer = 'y' else : answer = input ( ( '%s\nAgree (y/[n])? ' % _hcp_mmp_license_text ) ) if ( answer . lower ( ) != 'y' ) : raise RuntimeError ( 'You must agree to the license to use this dataset' ) _fetch_file ( 'https://ndownloader.figshare.com/files/5528816' , fnames [ 0 ] , hash_ = '46a102b59b2fb1bb4bd62d51bf02e975' ) _fetch_file ( 'https://ndownloader.figshare.com/files/5528819' , fnames [ 1 ] , hash_ = '75e96b331940227bbcb07c1c791c2463' )
fetch the hcp-mmp parcellation .