Skip to content

Commit

Permalink
Merge pull request #1094 from agramfort/misc
Browse files Browse the repository at this point in the history
MISC : use + not - with combining conditions in epochs
  • Loading branch information
mluessi committed Jan 23, 2014
2 parents 36f9d60 + d6f809f commit d721b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mne/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,8 +1127,8 @@ def __getitem__(self, key):
if isinstance(key, list) and isinstance(key[0], string_types):
select = np.any(np.atleast_2d([epochs._key_match(k)
for k in key]), axis=0)
epochs.name = ('-'.join(key) if epochs.name == 'Unknown'
else 'epochs_%s' % '-'.join(key))
epochs.name = ('+'.join(key) if epochs.name == 'Unknown'
else 'epochs_%s' % '+'.join(key))
else:
select = key if isinstance(key, slice) else np.atleast_1d(key)

Expand Down

0 comments on commit d721b46

Please sign in to comment.