90663bcb608fc6ea068ab88c7e8496d3a417f877,mvpa2/misc/surfing/volgeom.py,VolGeom,ijk2lin,#VolGeom#Any#,84

Before Change



        // make a 3x1 vector with multiplication factors
        for i, f in enumerate(fs):
            m[i] = f

        r = np.dot(ijk, m)

        outsidemsk = np.invert(self.contains_lin(r)) //self.contains_ijk(ijk)

After Change


        """

        lin = self._ijk2lin_unmasked(ijk)
        lin[self._outside_vol(ijk, lin)] = self.nvoxels

        return lin
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: 90663bcb608fc6ea068ab88c7e8496d3a417f877
Time: 2012-08-30
Author: nikolaas.oosterhof@unitn.it
File Name: mvpa2/misc/surfing/volgeom.py
Class Name: VolGeom
Method Name: ijk2lin


Project Name: PyMVPA/PyMVPA
Commit Name: 90663bcb608fc6ea068ab88c7e8496d3a417f877
Time: 2012-08-30
Author: nikolaas.oosterhof@unitn.it
File Name: mvpa2/misc/surfing/volgeom.py
Class Name: VolGeom
Method Name: lin2ijk


Project Name: PyMVPA/PyMVPA
Commit Name: 90663bcb608fc6ea068ab88c7e8496d3a417f877
Time: 2012-08-30
Author: nikolaas.oosterhof@unitn.it
File Name: mvpa2/misc/surfing/volgeom.py
Class Name: VolGeom
Method Name: xyz2ijk