MneExperiment.iter(self, fields='subject', exclude=None, values=None, group=None, progress_bar=None, **kwargs)

Cycle the experiment’s state through all values on the given fields

fields : sequence | str

Field(s) over which should be iterated.

exclude : dict {str: iterator over str}

Exclude values from iteration ({field: values_to_exclude}).

values : dict {str: iterator over str}

Fields with custom values to iterate over (instead of the corresponding field values) with {name: (sequence of values)} entries.

group : None | str

If iterating over subjects, use this group (‘all’ for all except excluded subjects, ‘all!’ for all including excluded subjects, or a name defined in experiment.groups).

progress_bar : str

Message to show in the progress bar.

Fields with constant values throughout the iteration.