1c804e98744065a6caf9d3675fee9256de6e5f76,mvpa2/misc/surfing/volgeom.py,VolGeom,contains_ijk,#VolGeom#Any#,340

Before Change



        m = reduce(np.logical_and, [0 <= ijk[:, 0], ijk[:, 0] < shape[0],
                                   0 <= ijk[:, 1], ijk[:, 1] < shape[1],
                                   0 <= ijk[:, 2], ijk[:, 2] < shape[2]])

        if not self.mask is None:
            m = np.logical_and(m, self.mask)

After Change


        """
        lin = self._ijk2lin_unmasked(ijk)

        return np.logical_not(self._outside_vol(ijk, lin))


Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


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


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