This is an automated email from the git hooks/post-receive script. yoh pushed a commit to tag 0.4 in repository python-mne.
commit 01d2845c8dd2d0614f048e2ce3f1d29bf329776a Author: Alexandre Gramfort <[email protected]> Date: Tue Feb 28 08:33:23 2012 +0100 ENH : more permissive test for evoked algebra --- mne/fiff/evoked.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mne/fiff/evoked.py b/mne/fiff/evoked.py index 38f05a1..b17f372 100644 --- a/mne/fiff/evoked.py +++ b/mne/fiff/evoked.py @@ -361,8 +361,9 @@ def merge_evoked(all_evoked): for e in all_evoked[1:]: assert e.ch_names == ch_names, ValueError("%s and %s do not contain " "the same channels" % (evoked, e)) - assert np.all(e.times == evoked.times), ValueError("%s and %s do not " - "contain the same time instants" % (evoked, e)) + assert np.max(np.abs(e.times - evoked.times)) < 1e-7, \ + ValueError("%s and %s do not " + "contain the same time instants" % (evoked, e)) all_nave = sum(e.nave for e in all_evoked) evoked.data = sum(e.nave * e.data for e in all_evoked) / all_nave -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-mne.git _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
