MCPcopy
hub / github.com/mne-tools/mne-python / _get_ico_map

Function _get_ico_map

mne/bem.py:499–505  ·  view source on GitHub ↗

Get a mapping between ico surfaces.

(fro, to)

Source from the content-addressed store, hash-verified

497
498
499def _get_ico_map(fro, to):
500 """Get a mapping between ico surfaces."""
501 nearest, dists = _compute_nearest(fro["rr"], to["rr"], return_dists=True)
502 n_bads = (dists > 5e-3).sum()
503 if n_bads > 0:
504 raise RuntimeError(f"No matching vertex for {n_bads} destination vertices")
505 return nearest
506
507
508def _order_surfaces(surfs):

Callers 2

test_bem_solutionFunction · 0.90
_ico_downsampleFunction · 0.85

Calls 2

_compute_nearestFunction · 0.85
sumMethod · 0.45

Tested by 1

test_bem_solutionFunction · 0.72