dipy/data/fetcher.py
def fetch_sherbrooke_3shell():
    """ Download a 3shell HARDI dataset with 192 gradient directions
    """
    url = 'https://dl.dropboxusercontent.com/u/2481924/sherbrooke_data/'
    uraw = url + '3shells-1000-2000-3500-N193.nii.gz'
    ubval = url + '3shells-1000-2000-3500-N193.bval'
    ubvec = url + '3shells-1000-2000-3500-N193.bvec'
    folder = pjoin(dipy_home, 'sherbrooke_3shell')

    md5_list = ['0b735e8f16695a37bfbd66aab136eb66',  # data
                'e9b9bb56252503ea49d31fb30a0ac637',  # bval
                '0c83f7e8b917cd677ad58a078658ebb7']  # bvec

    url_list = [uraw, ubval, ubvec]
    fname_list = ['HARDI193.nii.gz', 'HARDI193.bval', 'HARDI193.bvec']

    if not os.path.exists(folder):
        print('Creating new directory %s' % folder)
        os.makedirs(folder)
        print('Downloading raw 3-shell data (184MB)...')

        for i in range(len(md5_list)):
            _get_file_data(pjoin(folder, fname_list[i]), url_list[i])
            check_md5(pjoin(folder, fname_list[i]), md5_list[i])

        print('Done.')
        print('Files copied in folder %s' % folder)
    else:
        _already_there_msg(folder)
 Download a 3shell HARDI dataset with 192 gradient directions
    
Download a 3shell HARDI dataset with 192 gradient directions
Download a 3shell HARDI dataset with 192 gradient directions
def fetch_sherbrooke_3shell():
    url = 'https://dl.dropboxusercontent.com/u/2481924/sherbrooke_data/'
    uraw = url + '3shells-1000-2000-3500-N193.nii.gz'
    ubval = url + '3shells-1000-2000-3500-N193.bval'
    ubvec = url + '3shells-1000-2000-3500-N193.bvec'
    folder = pjoin(dipy_home, 'sherbrooke_3shell')
    md5_list = ['0b735e8f16695a37bfbd66aab136eb66',  
                'e9b9bb56252503ea49d31fb30a0ac637',  
                '0c83f7e8b917cd677ad58a078658ebb7']  
    url_list = [uraw, ubval, ubvec]
    fname_list = ['HARDI193.nii.gz', 'HARDI193.bval', 'HARDI193.bvec']
    if not os.path.exists(folder):
        print('Creating new directory %s' % folder)
        os.makedirs(folder)
        print('Downloading raw 3-shell data (184MB)...')
        for i in range(len(md5_list)):
            _get_file_data(pjoin(folder, fname_list[i]), url_list[i])
            check_md5(pjoin(folder, fname_list[i]), md5_list[i])
        print('Done.')
        print('Files copied in folder %s' % folder)
    else:
        _already_there_msg(folder)
def fetch_sherbrooke_3shell ( ) : url = 'https://dl.dropboxusercontent.com/u/2481924/sherbrooke_data/' uraw = url + '3shells-1000-2000-3500-N193.nii.gz' ubval = url + '3shells-1000-2000-3500-N193.bval' ubvec = url + '3shells-1000-2000-3500-N193.bvec' folder = pjoin ( dipy_home , 'sherbrooke_3shell' ) md5_list = [ '0b735e8f16695a37bfbd66aab136eb66' , 'e9b9bb56252503ea49d31fb30a0ac637' , '0c83f7e8b917cd677ad58a078658ebb7' ] url_list = [ uraw , ubval , ubvec ] fname_list = [ 'HARDI193.nii.gz' , 'HARDI193.bval' , 'HARDI193.bvec' ] if not os . path . exists ( folder ) : print ( 'Creating new directory %s' % folder ) os . makedirs ( folder ) print ( 'Downloading raw 3-shell data (184MB)...' ) for i in range ( len ( md5_list ) ) : _get_file_data ( pjoin ( folder , fname_list [ i ] ) , url_list [ i ] ) check_md5 ( pjoin ( folder , fname_list [ i ] ) , md5_list [ i ] ) print ( 'Done.' ) print ( 'Files copied in folder %s' % folder ) else : _already_there_msg ( folder )
Download a 3shell HARDI dataset with 192 gradient directions
Download a 3shell HARDI dataset with 192 gradient directions
""" Download a 3shell HARDI dataset with 192 gradient directions
    """ # data # bval # bvec