This is an automated email from the git hooks/post-receive script.

yoh pushed a commit to annotated tag v0.2
in repository python-mne.

commit 468735e2192391358fd5c3767d6891977eeafaac
Author: Martin Luessi <[email protected]>
Date:   Wed Sep 28 17:21:15 2011 -0400

    better way of constructing 3D array. this should be the last commit 
(hopefully)
---
 mne/epochs.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/mne/epochs.py b/mne/epochs.py
index cfcfbc7..b3063a7 100644
--- a/mne/epochs.py
+++ b/mne/epochs.py
@@ -378,11 +378,7 @@ class Epochs(object):
             else:
                 #make sure data remains a 3D array
                 #Note: np.atleast_3d() doesn't do what we want
-                n_channels = len(self.ch_names)
-                n_times = len(self.times)
-                data = np.empty((1, n_channels, n_times))
-                data[0, :, :] = self._data[key]
-                epochs._data = data
+                epochs._data = np.array([self._data[key]])
 
         return epochs
 

-- 
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

Reply via email to