class_docstr: Class to add epoch selection and metadata to certain classes.
class_docstr_tok: ["Class","to","add","epoch","selection","and","metadata","to","certain","classes","."]
docstr: Facilitate iteration over epochs.
  
  This method resets the object iteration state to the first epoch.
  
  Notes
  -----
  This enables the use of this Python pattern::
  
      >>> for epoch in epochs:  # doctest: +SKIP
      >>>     print(epoch)  # doctest: +SKIP
  
  Where ``epoch`` is given by successive outputs of
  :meth:`mne.Epochs.next`.
docstr_tok: ["Facilitate","iteration","over","epochs",".","This","method","resets","the","object","iteration","state","to","the","first","epoch",".","Notes","--","--","-","This","enables","the","use","of","this","Python","pattern",":",":",">",">",">","for","epoch","in","epochs",":","#","doctest",":","+SKIP",">",">",">","print","(","epoch",")","#","doctest",":","+SKIP","Where","``","epoch","``","is","given","by","successive","outputs","of",":","meth",":","`","mne.Epochs.next","`","."]
code: def __iter__(self):
      """Facilitate iteration over epochs.
  
      This method resets the object iteration state to the first epoch.
  
      Notes
      -----
      This enables the use of this Python pattern::
  
          >>> for epoch in epochs:  # doctest: +SKIP
          >>>     print(epoch)  # doctest: +SKIP
  
      Where ``epoch`` is given by successive outputs of
      :meth:`mne.Epochs.next`.
      """
      self._current = 0
      self._current_detrend_picks = self._detrend_picks
      return self
  
imports: import json
  import logging
  from collections import OrderedDict
  from copy import deepcopy
  import numpy
  from ._logging import verbose, warn
  from .check import _check_pandas_installed, _check_preload, _validate_type
  from .numerics import _time_mask, object_hash, object_size
label_desc: Use image node_id 6 for calling the GetEpochsMixin obj's underlying member method code with example usage: obj.__iter__() and returns: self