Skip to content

Commit

Permalink
Merge pull request #1044 from TalLinzen/interval_docstring
Browse files Browse the repository at this point in the history
Clarify use of closed intervals
  • Loading branch information
Denis A. Engemann committed Jan 7, 2014
2 parents dd9bc7d + 55044eb commit ab27e82
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mne/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,8 @@ class Epochs(_BaseEpochs):
and if b is None then b is set to the end of the interval.
If baseline is equal to (None, None) all the time
interval is used.
The baseline (a, b) includes both endpoints, i.e. all
timepoints t such that a <= t <= b.
picks : None (default) or array of int
Indices of channels to include (if None, all channels
are used).
Expand Down Expand Up @@ -1149,6 +1151,11 @@ def crop(self, tmin=None, tmax=None, copy=False):
-------
epochs : Epochs instance
The cropped epochs.
Note
----
Unlike Python slices, MNE time intervals include both their end points;
crop(tmin, tmax) returns the interval tmin <= t <= tmax.
"""
if not self.preload:
raise RuntimeError('Modifying data of epochs is only supported '
Expand Down

0 comments on commit ab27e82

Please sign in to comment.