def _assert_inside(fro, to):
 from .source_space import _get_solids
 tot_angle = _get_solids(to['rr'][to['tris']], fro['rr'])
 if (np.abs(((tot_angle / (2 * np.pi)) - 1.0)) > 1e-05).any():
  raise RuntimeError(('Surface %s is not completely inside surface %s' % (_surf_name[fro['id']], _surf_name[to['id']])))

def _assert_inside ( fro , to ) : from . source_space import _get_solids tot_angle = _get_solids ( to [ 'rr' ] [ to [ 'tris' ] ] , fro [ 'rr' ] ) if ( np . abs ( ( ( tot_angle / ( 2 * np . pi ) ) - 1.0 ) ) > 1e-05 ) . any ( ) : raise RuntimeError ( ( 'Surface %s is not completely inside surface %s' % ( _surf_name [ fro [ 'id' ] ] , _surf_name [ to [ 'id' ] ] ) ) )
helper to check one set of points is inside a surface .