def _get_inst_data(inst):
 from .io.base import BaseRaw
 from .epochs import BaseEpochs
 from . import Evoked
 from .time_frequency.tfr import _BaseTFR
 if isinstance(inst, (BaseRaw, BaseEpochs)):
  if (not inst.preload):
   inst.load_data()
  return inst._data
 elif isinstance(inst, (Evoked, _BaseTFR)):
  return inst.data
 else:
  raise TypeError('The argument must be an instance of Raw, Epochs, Evoked, EpochsTFR or AverageTFR, got {0}.'.format(type(inst)))

def _get_inst_data ( inst ) : from . io . base import BaseRaw from . epochs import BaseEpochs from . import Evoked from . time_frequency . tfr import _BaseTFR if isinstance ( inst , ( BaseRaw , BaseEpochs ) ) : if ( not inst . preload ) : inst . load_data ( ) return inst . _data elif isinstance ( inst , ( Evoked , _BaseTFR ) ) : return inst . data else : raise TypeError ( 'The argument must be an instance of Raw, Epochs, Evoked, EpochsTFR or AverageTFR, got {0}.' . format ( type ( inst ) ) )
get data view from mne object instance like raw .