beaff02d91a80c2cf12e626d47b3f1678188472d,mne/source_space.py,,_get_volume_label_mask,#Any#Any#Any#,1852

Before Change


    // Filter out points too far from volume region voxels
    dists = _compute_nearest(rr_voi, rr, return_dists=True)[1]
    // Maximum distance from center of mass of a voxel to any of its corners
    maxdist = linalg.norm(vox_mri_t["trans"][:3, :3].sum(0) / 2.)
    return dists <= maxdist


def _make_volume_source_space(surf, grid, exclude, mindist, mri=None,

After Change


    idx = np.empty(rr.shape[::-1], np.int64)
    for ii in range(3):
        good &= rr_vox[:, ii] < mgz_data.shape[ii] - 0.5
        idx[ii] = np.clip(np.round(rr_vox[:, ii]).astype(np.int64),
                          0, mgz_data.shape[ii] - 1)
    good &= mgz_data[tuple(idx)] == vol_id
    return good
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mne-tools/mne-python
Commit Name: beaff02d91a80c2cf12e626d47b3f1678188472d
Time: 2020-04-22
Author: larson.eric.d@gmail.com
File Name: mne/source_space.py
Class Name:
Method Name: _get_volume_label_mask


Project Name: geomstats/geomstats
Commit Name: 42ce0dba0e496fca8b567516499909e185b70322
Time: 2018-11-20
Author: 15810673+oleg-kachan@users.noreply.github.com
File Name: geomstats/stiefel.py
Class Name: Stiefel
Method Name: belongs


Project Name: geomstats/geomstats
Commit Name: f0363f957b8e6d2680af887972387de7f00b2715
Time: 2018-11-21
Author: 15810673+oleg-kachan@users.noreply.github.com
File Name: geomstats/stiefel.py
Class Name: Stiefel
Method Name: belongs