a04fdeac1f3d7ad8f0e49393bb48e090c124ef99,nilearn/datasets/tests/test_atlas.py,,test_fetch_atlas_talairach,#Any#,497

Before Change


    ])
    fake = nibabel.Nifti1Image(
        np.asarray([0, 1]).reshape(1, 2, 1),
        np.eye(4),
        nibabel.Nifti1Header(extensions=extensions))
    os.makedirs(os.path.join(tst.tmpdir, "talairach_atlas"))
    fake.to_filename(

After Change


@with_setup(tst.setup_tmpdata, tst.teardown_tmpdata)
def test_fetch_atlas_talairach(data_dir=tst.tmpdir):
    atlas._fetch_files = _mock_talairach_fetch_files
    level_values = np.ones((81, 3)) * [0, 1, 2]
    talairach = atlas.fetch_atlas_talairach("hemisphere", data_dir=tst.tmpdir)
    assert_array_equal(talairach.maps.get_data().ravel(),
                       level_values.T.ravel())
    talairach = atlas.fetch_atlas_talairach("ba", data_dir=tst.tmpdir)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nilearn/nilearn
Commit Name: a04fdeac1f3d7ad8f0e49393bb48e090c124ef99
Time: 2017-11-17
Author: jerome@dockes.org
File Name: nilearn/datasets/tests/test_atlas.py
Class Name:
Method Name: test_fetch_atlas_talairach


Project Name: pymc-devs/pymc3
Commit Name: 66d22e8e91792efc7af482c1f1bad60ac3447397
Time: 2008-01-29
Author: anand.prabhakar.patil@15d7aa0b-6f1a-0410-991a-d59f85d14984
File Name: pymc/sandbox/test_Gibbs.py
Class Name: test_Gibbs
Method Name: check_GammaNormal


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 124dd596e86919cd55d8b33a6b635a17007d1f6f
Time: 2018-03-21
Author: boris.ilpossente@hotmail.it
File Name: examples/lqr_pg.py
Class Name:
Method Name: experiment