dipy/data/fetcher.py
def fetch_taiwan_ntu_dsi():
    """ Download a DSI dataset with 203 gradient directions
    """
    uraw = 'http://dl.dropbox.com/u/2481924/taiwan_ntu_dsi.nii.gz'
    ubval = 'http://dl.dropbox.com/u/2481924/tawian_ntu_dsi.bval'
    ubvec = 'http://dl.dropbox.com/u/2481924/taiwan_ntu_dsi.bvec'
    ureadme = 'http://dl.dropbox.com/u/2481924/license_taiwan_ntu_dsi.txt'
    folder = pjoin(dipy_home, 'taiwan_ntu_dsi')

    md5_list = ['950408c0980a7154cb188666a885a91f',  # data
                '602e5cb5fad2e7163e8025011d8a6755',  # bval
                'a95eb1be44748c20214dc7aa654f9e6b',  # bvec
                '7fa1d5e272533e832cc7453eeba23f44']  # license

    url_list = [uraw, ubval, ubvec, ureadme]
    fname_list = ['DSI203.nii.gz', 'DSI203.bval', 'DSI203.bvec', 'DSI203_license.txt']

    if not os.path.exists(folder):
        print('Creating new directory %s' % folder)
        os.makedirs(folder)
        print('Downloading raw DSI data (91MB)...')

        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)
        print('See DSI203_license.txt for LICENSE.')
        print('For the complete datasets please visit :')
        print('http://dsi-studio.labsolver.org')

    else:
        _already_there_msg(folder)
 Download a DSI dataset with 203 gradient directions
    
Download a DSI dataset with 203 gradient directions
Download a DSI dataset with 203 gradient directions
def fetch_taiwan_ntu_dsi():
    uraw = 'http://dl.dropbox.com/u/2481924/taiwan_ntu_dsi.nii.gz'
    ubval = 'http://dl.dropbox.com/u/2481924/tawian_ntu_dsi.bval'
    ubvec = 'http://dl.dropbox.com/u/2481924/taiwan_ntu_dsi.bvec'
    ureadme = 'http://dl.dropbox.com/u/2481924/license_taiwan_ntu_dsi.txt'
    folder = pjoin(dipy_home, 'taiwan_ntu_dsi')
    md5_list = ['950408c0980a7154cb188666a885a91f',  
                '602e5cb5fad2e7163e8025011d8a6755',  
                'a95eb1be44748c20214dc7aa654f9e6b',  
                '7fa1d5e272533e832cc7453eeba23f44']  
    url_list = [uraw, ubval, ubvec, ureadme]
    fname_list = ['DSI203.nii.gz', 'DSI203.bval', 'DSI203.bvec', 'DSI203_license.txt']
    if not os.path.exists(folder):
        print('Creating new directory %s' % folder)
        os.makedirs(folder)
        print('Downloading raw DSI data (91MB)...')
        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)
        print('See DSI203_license.txt for LICENSE.')
        print('For the complete datasets please visit :')
        print('http://dsi-studio.labsolver.org')
    else:
        _already_there_msg(folder)
def fetch_taiwan_ntu_dsi ( ) : uraw = 'http://dl.dropbox.com/u/2481924/taiwan_ntu_dsi.nii.gz' ubval = 'http://dl.dropbox.com/u/2481924/tawian_ntu_dsi.bval' ubvec = 'http://dl.dropbox.com/u/2481924/taiwan_ntu_dsi.bvec' ureadme = 'http://dl.dropbox.com/u/2481924/license_taiwan_ntu_dsi.txt' folder = pjoin ( dipy_home , 'taiwan_ntu_dsi' ) md5_list = [ '950408c0980a7154cb188666a885a91f' , '602e5cb5fad2e7163e8025011d8a6755' , 'a95eb1be44748c20214dc7aa654f9e6b' , '7fa1d5e272533e832cc7453eeba23f44' ] url_list = [ uraw , ubval , ubvec , ureadme ] fname_list = [ 'DSI203.nii.gz' , 'DSI203.bval' , 'DSI203.bvec' , 'DSI203_license.txt' ] if not os . path . exists ( folder ) : print ( 'Creating new directory %s' % folder ) os . makedirs ( folder ) print ( 'Downloading raw DSI data (91MB)...' ) 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 ) print ( 'See DSI203_license.txt for LICENSE.' ) print ( 'For the complete datasets please visit :' ) print ( 'http://dsi-studio.labsolver.org' ) else : _already_there_msg ( folder )
Download a DSI dataset with 203 gradient directions
Download a DSI dataset with 203 gradient directions
""" Download a DSI dataset with 203 gradient directions
    """ # data # bval # bvec # license