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

Function _get_ico_surface

mne/surface.py:1129–1139  ·  view source on GitHub ↗

Return an icosahedral surface of the desired grade.

(grade, patch_stats=False)

Source from the content-addressed store, hash-verified

1127
1128
1129def _get_ico_surface(grade, patch_stats=False):
1130 """Return an icosahedral surface of the desired grade."""
1131 # always use verbose=False since users don't need to know we're pulling
1132 # these from a file
1133 from .bem import read_bem_surfaces
1134
1135 ico_file_name = op.join(op.dirname(__file__), "data", "icos.fif.gz")
1136 ico = read_bem_surfaces(
1137 ico_file_name, patch_stats, s_id=9000 + grade, verbose=False
1138 )
1139 return ico
1140
1141
1142def _tessellate_sphere_surf(level, rad=1.0):

Callers 8

test_sensors_inside_bemFunction · 0.90
test_decimateFunction · 0.90
test_iterableFunction · 0.90
_ico_downsampleFunction · 0.85
_get_ico_trisFunction · 0.85
_check_spacingFunction · 0.85

Calls 1

read_bem_surfacesFunction · 0.85

Tested by 5

test_sensors_inside_bemFunction · 0.72
test_decimateFunction · 0.72
test_iterableFunction · 0.72