[med-svn] [python-mne] 228/376: fix write_events
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:22:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
yoh pushed a commit to annotated tag v0.1
in repository python-mne.
commit 962fd2d13b404751ed8f7a035cac64a00ba525e6
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Mon May 2 17:08:02 2011 -0400
fix write_events
---
mne/event.py | 2 +-
mne/tests/test_event.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mne/event.py b/mne/event.py
index 786727c..e790110 100755
--- a/mne/event.py
+++ b/mne/event.py
@@ -72,7 +72,7 @@ def write_events(filename, event_list):
fid = start_file(filename)
start_block(fid, FIFF.FIFFB_MNE_EVENTS)
- write_int(fid, FIFF.FIFF_MNE_EVENT_LIST, event_list)
+ write_int(fid, FIFF.FIFF_MNE_EVENT_LIST, event_list.T)
end_block(fid, FIFF.FIFFB_MNE_EVENTS)
end_file(fid)
diff --git a/mne/tests/test_event.py b/mne/tests/test_event.py
index b902a6d..c15f506 100755
--- a/mne/tests/test_event.py
+++ b/mne/tests/test_event.py
@@ -17,7 +17,7 @@ def test_io_events():
"""
events = mne.read_events(fname)
mne.write_events('events.fif', events)
- events2 = mne.read_events(fname)
+ events2 = mne.read_events('events.fif')
assert_array_almost_equal(events, events2)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-mne.git
More information about the debian-med-commit
mailing list