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

Function _check_surface_size

mne/bem.py:569–577  ·  view source on GitHub ↗

Check that the coordinate limits are reasonable.

(surf)

Source from the content-addressed store, hash-verified

567
568
569def _check_surface_size(surf):
570 """Check that the coordinate limits are reasonable."""
571 sizes = surf["rr"].max(axis=0) - surf["rr"].min(axis=0)
572 if (sizes < 0.05).any():
573 raise RuntimeError(
574 f"Dimensions of the surface {_bem_surf_name[surf['id']]} seem too "
575 f"small ({1000 * sizes.min():9.5f}). Maybe the unit of measure"
576 " is meters instead of mm"
577 )
578
579
580def _check_thicknesses(surfs):

Callers 2

test_bem_solutionFunction · 0.90
_surfaces_to_bemFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_bem_solutionFunction · 0.72