6d16dc2aa1d9bebe3d645824550baf5e65230b24,dipy/workflows/tests/test_tracking.py,,test_particle_filtering_traking_workflows,#,18

Before Change


def test_particle_filtering_traking_workflows():
    with TemporaryDirectory() as out_dir:
        dwi_path, bval_path, bvec_path = get_fnames("small_64D")
        vol_img = nib.load(dwi_path)
        volume = vol_img.get_fdata()

        // Create some mask
        mask = np.ones_like(volume[:, :, :, 0])
        mask_img = nib.Nifti1Image(mask.astype(np.uint8), vol_img.affine)
        mask_path = join(out_dir, "tmp_mask.nii.gz")
        nib.save(mask_img, mask_path)

        simple_wm = np.array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],

After Change


        // Create some mask
        mask = np.ones_like(volume[:, :, :, 0], dtype=np.uint8)
        mask_path = join(out_dir, "tmp_mask.nii.gz")
        save_nifti(mask_path, mask, affine)

        simple_wm = np.array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: nipy/dipy
Commit Name: 6d16dc2aa1d9bebe3d645824550baf5e65230b24
Time: 2019-12-31
Author: skab12@gmail.com
File Name: dipy/workflows/tests/test_tracking.py
Class Name:
Method Name: test_particle_filtering_traking_workflows


Project Name: nipy/dipy
Commit Name: 6d16dc2aa1d9bebe3d645824550baf5e65230b24
Time: 2019-12-31
Author: skab12@gmail.com
File Name: dipy/workflows/tests/test_tracking.py
Class Name:
Method Name: test_local_fiber_tracking_workflow


Project Name: nipy/dipy
Commit Name: 6d16dc2aa1d9bebe3d645824550baf5e65230b24
Time: 2019-12-31
Author: skab12@gmail.com
File Name: dipy/workflows/tests/test_stats.py
Class Name:
Method Name: test_stats