94ed0aa814f813d507873b18fd1c0ad84fbe385f,nilearn/plotting/tests/test_img_plotting.py,,test_plot_functions,#,61
Before Change
import pylab as pl
pl.switch_backend("svg")
data = np.zeros((20, 20, 20))
data[3:-3, 3:-3, 3:-3] = 1
img = nibabel.Nifti1Image(data, mni_affine)
ortho_slicer = plot_anat(img, dim=True)
// Test saving with empty plot
After Change
data_positive = np.zeros((7, 7, 3))
data_positive[1:-1, 2:-1, 1:] = 1
data_negative = -data_positive
rng = np.random.RandomState(42)
data_heterogeneous = data_positive * rng.randn(*data_positive.shape)
img_positive = nibabel.Nifti1Image(data_positive, mni_affine)
img_negative = nibabel.Nifti1Image(data_negative, mni_affine)
img_heterogeneous = nibabel.Nifti1Image(data_heterogeneous, mni_affine)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: nilearn/nilearn
Commit Name: 94ed0aa814f813d507873b18fd1c0ad84fbe385f
Time: 2015-02-06
Author: michael.eickenberg@gmail.com
File Name: nilearn/plotting/tests/test_img_plotting.py
Class Name:
Method Name: test_plot_functions
Project Name: nilearn/nilearn
Commit Name: 1872ec1a1359fc4486f244b7e6e561cbbba10882
Time: 2015-05-08
Author: elvis.dohmatob@inria.fr
File Name: nilearn/decomposition/tests/test_canica.py
Class Name:
Method Name: test_component_sign
Project Name: epfl-lts2/pygsp
Commit Name: ff987bc8f1940c37661b334fa684dbfcf4eb86bd
Time: 2017-08-18
Author: michael.defferrard@epfl.ch
File Name: pygsp/tests/test_filters.py
Class Name: TestCase
Method Name: setUpClass