def _check_preload(raw, msg):
 if (not raw.preload):
  raise RuntimeError((msg + ' requires raw data to be loaded. Use preload=True (or string) in the constructor or raw.load_data().'))

def _check_preload ( raw , msg ) : if ( not raw . preload ) : raise RuntimeError ( ( msg + ' requires raw data to be loaded. Use preload=True (or string) in the constructor or raw.load_data().' ) )
ensure data are preloaded .