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: 5

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: KrishnaswamyLab/PHATE
Commit Name: b912ae50a0ca1766eceb062973e2952997285fac
Time: 2018-04-04
Author: scottgigante@gmail.com
File Name: Python/phate/phate.py
Class Name: PHATE
Method Name: von_neumann_entropy


Project Name: theislab/scanpy
Commit Name: 0c0cc3ac899ad88ea2804706f2adf106ccca3f71
Time: 2020-07-29
Author: adamgayoso@users.noreply.github.com
File Name: scanpy/preprocessing/_highly_variable_genes.py
Class Name:
Method Name: _highly_variable_genes_seurat_v3