mne.labels_to_stc¶
-
mne.labels_to_stc(labels, values, tmin=0, tstep=1, subject=None, verbose=None)[source]¶ Convert a set of labels and values to a STC.
This function is meant to work like the opposite of
extract_label_time_course.- Parameters
- labels
listofLabel The labels. Must not overlap.
- values
ndarray, shape (n_labels, …) The values in each label. Can be 1D or 2D.
- tmin
float The tmin to use for the STC.
- tstep
float The tstep to use for the STC.
- subject
str|None The subject for which to create the STC.
- verbosebool,
str,int, orNone If not None, override default verbose level (see
mne.verbose()and Logging documentation for more). If used, it should be passed as a keyword-argument only.
- labels
- Returns
- stcinstance of
SourceEstimate The values-in-labels converted to a STC.
- stcinstance of
See also
Notes
Vertices that appear in more than one label will be averaged.
New in version 0.18.