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 3b90fefb18608ddb320e795f2f92f7642db26ad3 Author: Alexandre Gramfort <[email protected]> Date: Tue May 29 15:44:14 2012 +0200 FIX : fix hemisphere identification with full path in read_label --- mne/label.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mne/label.py b/mne/label.py index c0b2b9c..40eae0d 100644 --- a/mne/label.py +++ b/mne/label.py @@ -36,9 +36,11 @@ def read_label(filename): label['vertices'] = np.array(data[0], dtype=np.int32) label['pos'] = 1e-3 * data[1:4].T label['values'] = data[4] - if filename.endswith('lh.label') or filename.startswith('lh.'): + + basename = os.path.basename(filename) + if basename.endswith('lh.label') or basename.startswith('lh.'): label['hemi'] = 'lh' - elif filename.endswith('rh.label') or filename.startswith('rh.'): + elif basename.endswith('rh.label') or basename.startswith('rh.'): label['hemi'] = 'rh' else: raise ValueError('Cannot find which hemisphere it is. File should end' -- 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
