dipy/data/fetcher.py
def fetch_isbi2013_2shell():
    """ Download a 2-shell software phantom dataset
    """
    url = 'https://dl.dropboxusercontent.com/u/2481924/isbi2013_merlet/'
    uraw = url + '2shells-1500-2500-N64-SNR-30.nii.gz'
    ubval = url + '2shells-1500-2500-N64.bval'
    ubvec = url + '2shells-1500-2500-N64.bvec'
    folder = pjoin(dipy_home, 'isbi2013')

    md5_list = ['42911a70f232321cf246315192d69c42',  # data
                '90e8cf66e0f4d9737a3b3c0da24df5ea',  # bval
                '4b7aa2757a1ccab140667b76e8075cb1']  # bvec

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

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

        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 2-shell software phantom dataset
    
Download a 2-shell software phantom dataset
Download a 2 - shell software phantom dataset
def fetch_isbi2013_2shell():
    url = 'https://dl.dropboxusercontent.com/u/2481924/isbi2013_merlet/'
    uraw = url + '2shells-1500-2500-N64-SNR-30.nii.gz'
    ubval = url + '2shells-1500-2500-N64.bval'
    ubvec = url + '2shells-1500-2500-N64.bvec'
    folder = pjoin(dipy_home, 'isbi2013')
    md5_list = ['42911a70f232321cf246315192d69c42',  
                '90e8cf66e0f4d9737a3b3c0da24df5ea',  
                '4b7aa2757a1ccab140667b76e8075cb1']  
    url_list = [uraw, ubval, ubvec]
    fname_list = ['phantom64.nii.gz', 'phantom64.bval', 'phantom64.bvec']
    if not os.path.exists(folder):
        print('Creating new directory %s' % folder)
        os.makedirs(folder)
        print('Downloading raw 2-shell synthetic data (20MB)...')
        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_isbi2013_2shell ( ) : url = 'https://dl.dropboxusercontent.com/u/2481924/isbi2013_merlet/' uraw = url + '2shells-1500-2500-N64-SNR-30.nii.gz' ubval = url + '2shells-1500-2500-N64.bval' ubvec = url + '2shells-1500-2500-N64.bvec' folder = pjoin ( dipy_home , 'isbi2013' ) md5_list = [ '42911a70f232321cf246315192d69c42' , '90e8cf66e0f4d9737a3b3c0da24df5ea' , '4b7aa2757a1ccab140667b76e8075cb1' ] url_list = [ uraw , ubval , ubvec ] fname_list = [ 'phantom64.nii.gz' , 'phantom64.bval' , 'phantom64.bvec' ] if not os . path . exists ( folder ) : print ( 'Creating new directory %s' % folder ) os . makedirs ( folder ) print ( 'Downloading raw 2-shell synthetic data (20MB)...' ) 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 2-shell software phantom dataset
Download a 2 - shell software phantom dataset
""" Download a 2-shell software phantom dataset
    """ # data # bval # bvec