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

Before Change


    nib.save(mean_b0, B0)

    // Get mean b0 brain mask
    os.system("bet {} {} -m -f 0.2".format(B0, B0_bet))
    return gtab_file, B0_bet, B0_mask, dwi_file


def as_list(x):

After Change


    // Extract and Combine all b0s collected
    print("Extracting b0\"s...")
    b0_vols = []
    dwi_img = nib.load(dwi_file)
    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])
    nib.save(mean_B0_img, B0)

    // Create mean b0 brain mask
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: mindsdb/mindsdb
Commit Name: 8c297ee989bdd23337d6107cc97e42241e07650a
Time: 2019-07-23
Author: george@cerebralab.com
File Name: setup.py
Class Name:
Method Name:


Project Name: tensorlayer/tensorlayer
Commit Name: 46df7a7fc37db97a9f96e866f7010bff61f9c565
Time: 2018-03-16
Author: dhsig552@163.com
File Name: tensorlayer/files.py
Class Name:
Method Name: load_flickr1M_dataset