mne.time_frequency.
EpochsTFR
(info, data, times, freqs, comment=None, method=None, verbose=None)[source]¶Container for Time-Frequency data on epochs.
Can for example store induced power at sensor level.
Parameters: | info : Info
data : ndarray, shape (n_epochs, n_channels, n_freqs, n_times)
times : ndarray, shape (n_times,)
freqs : ndarray, shape (n_freqs,)
comment : str | None, defaults to None
method : str | None, defaults to None
verbose : bool, str, int, or None
|
---|
Notes
New in version 0.13.0.
Attributes
ch_names |
Channel names. |
Methods
__contains__ (ch_type) |
Check channel type membership. |
__hash__ () |
Hash the object. |
add_channels (add_list[, force_update_info]) |
Append new channels to the instance. |
apply_baseline (baseline[, mode, verbose]) |
Baseline correct the data. |
average () |
Average the data across epochs. |
copy () |
Return a copy of the instance. |
crop ([tmin, tmax]) |
Crop data to a given time interval in place. |
drop_channels (ch_names) |
Drop some channels. |
pick_channels (ch_names) |
Pick some channels. |
pick_types ([meg, eeg, stim, eog, ecg, emg, …]) |
Pick some channels by type and names. |
__contains__
(ch_type)[source]¶Check channel type membership.
Parameters: | ch_type : str
|
---|---|
Returns: | in : bool
|
Examples
Channel type membership can be tested as:
>>> 'meg' in inst
True
>>> 'seeg' in inst
False
add_channels
(add_list, force_update_info=False)[source]¶Append new channels to the instance.
Parameters: | add_list : list
force_update_info : bool
|
---|---|
Returns: | inst : instance of Raw, Epochs, or Evoked
|
apply_baseline
(baseline, mode=’mean’, verbose=None)[source]¶Baseline correct the data.
Parameters: | baseline : tuple or list of length 2
mode : None | ‘ratio’ | ‘zscore’ | ‘mean’ | ‘percent’ | ‘logratio’ | ‘zlogratio’
verbose : bool, str, int, or None
|
---|---|
Returns: | inst : instance of AverageTFR
|
average
()[source]¶Average the data across epochs.
Returns: | ave : instance of AverageTFR
|
---|
ch_names
¶Channel names.
compensation_grade
¶The current gradient compensation grade.
crop
(tmin=None, tmax=None)[source]¶Crop data to a given time interval in place.
Parameters: | tmin : float | None
tmax : float | None
|
---|---|
Returns: | inst : instance of AverageTFR
|
drop_channels
(ch_names)[source]¶Drop some channels.
Parameters: | ch_names : list
|
---|---|
Returns: | inst : instance of Raw, Epochs, or Evoked
|
See also
Notes
New in version 0.9.0.
pick_channels
(ch_names)[source]¶Pick some channels.
Parameters: | ch_names : list
|
---|---|
Returns: | inst : instance of Raw, Epochs, or Evoked
|
See also
Notes
New in version 0.9.0.
pick_types
(meg=True, eeg=False, stim=False, eog=False, ecg=False, emg=False, ref_meg=’auto’, misc=False, resp=False, chpi=False, exci=False, ias=False, syst=False, seeg=False, dipole=False, gof=False, bio=False, ecog=False, fnirs=False, include=[], exclude=’bads’, selection=None)[source]¶Pick some channels by type and names.
Parameters: | meg : bool | str
eeg : bool
stim : bool
eog : bool
ecg : bool
emg : bool
ref_meg: bool | str
misc : bool
resp : bool
chpi : bool
exci : bool
ias : bool
syst : bool
seeg : bool
dipole : bool
gof : bool
bio : bool
ecog : bool
fnirs : bool | str
include : list of string
exclude : list of string | str
selection : list of string
|
---|---|
Returns: | inst : instance of Raw, Epochs, or Evoked
|
Notes
New in version 0.9.0.