4b50eb041ce3a84e9ffdc37232a99f91133dbd2c,nilearn/input_data/tests/test_nifti_spheres_masker.py,,test_anisotropic_sphere_extraction,#,48
Before Change
masker.fit()
// Test the transform
s = masker.transform(img)
mask = np.asarray(
[
[
[0, 0, 0],
[0, 0, 0],
[0, 0, 0]
],
[
[0, 1, 0],
[0, 1, 0],
[0, 1, 0]
],
[
[0, 0, 0],
[0, 0, 0],
[0, 0, 0]
]
], dtype=bool
)
assert_array_equal(s[:, 0], np.mean(data[mask], axis=0))
def test_errors():
After Change
masker.fit()
// Test the transform
s = masker.transform(img)
mask = np.zeros((3, 3, 3), dtype=np.bool)
mask[1, :, 1] = True
assert_array_equal(s[:, 0], np.mean(data[mask], axis=0))
def test_errors():
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 23
Instances
Project Name: nilearn/nilearn
Commit Name: 4b50eb041ce3a84e9ffdc37232a99f91133dbd2c
Time: 2015-05-07
Author: abraham.alexandre@gmail.com
File Name: nilearn/input_data/tests/test_nifti_spheres_masker.py
Class Name:
Method Name: test_anisotropic_sphere_extraction
Project Name: nilearn/nilearn
Commit Name: 4b50eb041ce3a84e9ffdc37232a99f91133dbd2c
Time: 2015-05-07
Author: abraham.alexandre@gmail.com
File Name: nilearn/input_data/tests/test_nifti_spheres_masker.py
Class Name:
Method Name: test_sphere_extraction
Project Name: nilearn/nilearn
Commit Name: 958eeaaa462b1c7f8f98dea8ba2cec5cf6ab32d8
Time: 2015-05-13
Author: abraham.alexandre@gmail.com
File Name: nilearn/input_data/tests/test_nifti_spheres_masker.py
Class Name:
Method Name: test_sphere_extraction
Project Name: nilearn/nilearn
Commit Name: 958eeaaa462b1c7f8f98dea8ba2cec5cf6ab32d8
Time: 2015-05-13
Author: abraham.alexandre@gmail.com
File Name: nilearn/input_data/tests/test_nifti_spheres_masker.py
Class Name:
Method Name: test_anisotropic_sphere_extraction