d64b3e882f106f19ea02a5a6066e60a9c0616c5b,pynets/core/utils.py,,make_gtab_and_bmask,#Any#Any#Any#Any#Any#Any#,1413

Before Change



    // Extract and Combine all b0s collected
    print("Extracting b0\"s...")
    cmds = []
    b0s_bbr = []
    for b0 in b0s:
        print(b0)
        b0_bbr = "{}/{}_b0.nii.gz".format(namer_dir, str(b0))
        cmds.append("fslroi {} {} {} 1".format(dwi_file, b0_bbr, str(b0), " 1"))
        b0s_bbr.append(b0_bbr)

    for cmd in cmds:
        os.system(cmd)

    // Get mean b0
    mean_b0 = mean_img(b0s_bbr)
    nib.save(mean_b0, B0)

    // Get mean b0 brain mask

After Change


    dwi_data = dwi_img.get_data()
    for b0 in b0s:
        print(b0)
        b0_vols.append(dwi_data[:, :, :, b0])

    // Save mean B0
    mean_B0_img = mean_img([nib.Nifti1Image(B0, affine=dwi_img.affine) for B0 in b0_vols])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dPys/PyNets
Commit Name: d64b3e882f106f19ea02a5a6066e60a9c0616c5b
Time: 2019-08-24
Author: dpisner@utexas.edu
File Name: pynets/core/utils.py
Class Name:
Method Name: make_gtab_and_bmask


Project Name: streamlit/streamlit
Commit Name: 536c65f1fe2e1dc5fb64e278fd95d23f968a2599
Time: 2018-11-23
Author: adrien.g.treuille@gmail.com
File Name: examples/run_all_examples.py
Class Name:
Method Name:


Project Name: streamlit/streamlit
Commit Name: 04519f15e750d1508c5c6bd6888210bdce348802
Time: 2018-11-23
Author: adrien.g.treuille@gmail.com
File Name: examples/run_all_examples.py
Class Name:
Method Name: