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

Function _complete_sphere_surf

mne/surface.py:1921–1930  ·  view source on GitHub ↗

Convert sphere conductor model to surface.

(sphere, idx, level, complete=True)

Source from the content-addressed store, hash-verified

1919
1920
1921def _complete_sphere_surf(sphere, idx, level, complete=True):
1922 """Convert sphere conductor model to surface."""
1923 rad = sphere["layers"][idx]["rad"]
1924 r0 = sphere["r0"]
1925 surf = _tessellate_sphere_surf(level, rad=rad)
1926 surf["rr"] += r0
1927 if complete:
1928 complete_surface_info(surf, copy=False)
1929 surf["coord_frame"] = sphere["coord_frame"]
1930 return surf
1931
1932
1933@verbose

Callers 1

_ensure_bem_surfacesFunction · 0.85

Calls 2

_tessellate_sphere_surfFunction · 0.85
complete_surface_infoFunction · 0.85

Tested by

no test coverage detected