def _check_bem_size(surfs):
 if (surfs[0]['np'] > 10000):
  msg = ('The bem surface has %s data points. 5120 (ico grade=4) should be enough.' % surfs[0]['np'])
  if (len(surfs) == 3):
   msg += ' Dense 3-layer bems may not save properly.'
  warn(msg)

def _check_bem_size ( surfs ) : if ( surfs [ 0 ] [ 'np' ] > 10000 ) : msg = ( 'The bem surface has %s data points. 5120 (ico grade=4) should be enough.' % surfs [ 0 ] [ 'np' ] ) if ( len ( surfs ) == 3 ) : msg += ' Dense 3-layer bems may not save properly.' warn ( msg )
helper for checking bem surface sizes .