3c1eafeea79d946575ea5b6b5cb02f945897d2fd,mvpa/tests/test_mapper.py,,test_flatten,#,28

Before Change


        assert_array_equal(dsflat.samples, target)

        // test index creation
        d = Dataset(N.ones((2,2,2)))
        f = FlattenMapper(inspace="voxel")
        f.train(d)
        md = f(d)
        t = array(([0,0],[0,1],[1,0],[1,1]))
        assert_array_equal(t, md.fa.voxel)

After Change


        ok_(isinstance(dsflat, Dataset))
        ok_(isinstance(dsflat.samples, myarray))
        assert_array_equal(dsflat.samples, target)
        assert_array_equal(dsflat.fa.awesome, N.arange(N.prod(samples_shape)))
        assert_true(isinstance(dsflat.fa["awesome"], ArrayCollectable))
        // test index creation
        assert_array_equal(index_target, dsflat.fa.voxel)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: 3c1eafeea79d946575ea5b6b5cb02f945897d2fd
Time: 2009-12-10
Author: michael.hanke@gmail.com
File Name: mvpa/tests/test_mapper.py
Class Name:
Method Name: test_flatten


Project Name: tensorlayer/tensorlayer
Commit Name: f2073333b710a340403843763ba60eb1e6699916
Time: 2019-04-11
Author: rundi_wu@pku.edu.cn
File Name: examples/data_process/tutorial_fast_affine_transform.py
Class Name:
Method Name: example3


Project Name: arviz-devs/arviz
Commit Name: 7ffcd4a2a5213c0a7de9fdc3aff4725c166db986
Time: 2019-01-27
Author: ahartikainen@users.noreply.github.com
File Name: arviz/tests/test_plots.py
Class Name:
Method Name: test_plot_ppc_discrete