dipy/data/fetcher.py
def fetch_syn_data():
    """ Download t1 and b0 volumes from the same session
    """
    url = 'https://dl.dropboxusercontent.com/u/5918983/'
    t1 = url + 't1.nii.gz'
    b0 = url + 'b0.nii.gz'

    folder = pjoin(dipy_home, 'syn_test')

    md5_list = ['701bda02bb769655c7d4a9b1df2b73a6',  # t1
                'e4b741f0c77b6039e67abb2885c97a78']  # b0

    url_list = [t1, b0]
    fname_list = ['t1.nii.gz', 'b0.nii.gz']

    if not os.path.exists(folder):
        print('Creating new directory %s' % folder)
        os.makedirs(folder)
        print('Downloading t1 and b0 volumes from the same session (12MB)...')

        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 t1 and b0 volumes from the same session
    
Download t1 and b0 volumes from the same session
Download t1 and b0 volumes from the same session
def fetch_syn_data():
    url = 'https://dl.dropboxusercontent.com/u/5918983/'
    t1 = url + 't1.nii.gz'
    b0 = url + 'b0.nii.gz'
    folder = pjoin(dipy_home, 'syn_test')
    md5_list = ['701bda02bb769655c7d4a9b1df2b73a6',  
                'e4b741f0c77b6039e67abb2885c97a78']  
    url_list = [t1, b0]
    fname_list = ['t1.nii.gz', 'b0.nii.gz']
    if not os.path.exists(folder):
        print('Creating new directory %s' % folder)
        os.makedirs(folder)
        print('Downloading t1 and b0 volumes from the same session (12MB)...')
        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_syn_data ( ) : url = 'https://dl.dropboxusercontent.com/u/5918983/' t1 = url + 't1.nii.gz' b0 = url + 'b0.nii.gz' folder = pjoin ( dipy_home , 'syn_test' ) md5_list = [ '701bda02bb769655c7d4a9b1df2b73a6' , 'e4b741f0c77b6039e67abb2885c97a78' ] url_list = [ t1 , b0 ] fname_list = [ 't1.nii.gz' , 'b0.nii.gz' ] if not os . path . exists ( folder ) : print ( 'Creating new directory %s' % folder ) os . makedirs ( folder ) print ( 'Downloading t1 and b0 volumes from the same session (12MB)...' ) 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 t1 and b0 volumes from the same session
Download t1 and b0 volumes from the same session
""" Download t1 and b0 volumes from the same session
    """ # t1 # b0