c407f22bb9e27ff5612f4087211bd4c2eccfbbc2,tests/test_estimation.py,,test_timseries_extraction_extract,#Any#,211
Before Change
dir_path = dir_path_tmp.name
func_file = tempfile.NamedTemporaryFile(mode="w+", suffix=".nii.gz")
img_data = np.random.rand(50, 50, 50, 20)
img = nib.Nifti1Image(img_data, np.eye(4))
img.to_filename(func_file.name)
// Create a temp parcel file
parcels_tmp = tempfile.NamedTemporaryFile(mode="w+", suffix=".nii.gz")
parcels = np.zeros((50, 50, 50))
parcels[10:20, 0, 0], parcels[0, 10:20, 0], parcels[0, 0, 10:20] = 1, 2, 3
nib.Nifti1Image(parcels, np.eye(4)).to_filename(parcels_tmp.name)
net_parcels_map_nifti_file = parcels_tmp.name
// Create empty mask file
mask_tmp = tempfile.NamedTemporaryFile(mode="w+", suffix=".nii.gz")
mask = np.zeros((50, 50, 50))
nib.Nifti1Image(parcels, np.eye(4)).to_filename(mask_tmp.name)
mask = mask_tmp.name
if conf:
After Change
dir_path_tmp = tempfile.TemporaryDirectory()
dir_path = dir_path_tmp.name
shape1 = (13, 11, 12)
affine1 = np.eye(4)
length = 30
func_img, mask_img = generate_random_img(shape1, affine=affine1,
length=length)
func_file = tempfile.NamedTemporaryFile(mode="w+", suffix=".nii.gz")
func_img.to_filename(func_file.name)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: dPys/PyNets
Commit Name: c407f22bb9e27ff5612f4087211bd4c2eccfbbc2
Time: 2021-02-21
Author: dpisner@utexas.edu
File Name: tests/test_estimation.py
Class Name:
Method Name: test_timseries_extraction_extract
Project Name: nilearn/nilearn
Commit Name: 56f63c1ee1e1bf5d06550373b39caa085fdc9f12
Time: 2015-07-28
Author: elvis.dohmatob@inria.fr
File Name: nilearn/decoding/tests/test_same_api.py
Class Name:
Method Name: test_smoothlasso_and_tv_same_for_pure_l1_another_test
Project Name: nilearn/nilearn
Commit Name: e706526aef384392be0395e7c69e3795289ada11
Time: 2015-07-28
Author: elvis.dohmatob@inria.fr
File Name: nilearn/decoding/tests/test_same_api.py
Class Name:
Method Name: test_smoothlasso_and_tv_same_for_pure_l1_another_test
Project Name: dPys/PyNets
Commit Name: c407f22bb9e27ff5612f4087211bd4c2eccfbbc2
Time: 2021-02-21
Author: dpisner@utexas.edu
File Name: tests/test_estimation.py
Class Name:
Method Name: test_timseries_extraction_extract