<div dir="ltr"><div><div><div><div>I was puzzled today why this works...<br><br></div><div>for ix, _ in enumerate(epochs):<br></div><div>    new_epoch = epochs[ix].crop(tmin, tmax, copy=True)<br></div><div><br></div>... but this does not:<br><br></div>for epoch in epochs:<br></div>    new_epoch = epoch.crop(..., copy=True)<br><br>AttributeError: &#39;numpy.ndarray&#39; object has no attribute &#39;crop&#39;<br><br></div>According to the docs, Epochs.next() is supposed to return an instance of the epochs object, but it doesn&#39;t: looking at the code, it actually returns something like self._data[self._current].  I would have expected it to return something like self.__get_item__(self._current).  So are the docs wrong, or is the definition of Epochs.next() implemented wrong?<br><br>Daniel McCloy<br><a href="http://dan.mccloy.info/">http://dan.mccloy.info/</a><br>Postdoctoral Research Associate<br>Institute for Learning and Brain Sciences<br>University of Washington<br><br></div>