[med-svn] [python-mne] 213/376: numpy trick
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:22:40 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 10088c64adf0cc17d89a1359364d8ccea943fe3b
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Fri Apr 22 12:57:13 2011 -0400
numpy trick
---
mne/surfer.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/mne/surfer.py b/mne/surfer.py
index 4986994..21f77de 100644
--- a/mne/surfer.py
+++ b/mne/surfer.py
@@ -10,9 +10,7 @@ import numpy as np
def fread3(fobj):
"""Docstring"""
- b1 = np.fromfile(fobj, ">u1", 1)[0]
- b2 = np.fromfile(fobj, ">u1", 1)[0]
- b3 = np.fromfile(fobj, ">u1", 1)[0]
+ b1, b2, b3 = np.fromfile(fobj, ">u1", 3)
return (b1 << 16) + (b2 << 8) + b3
--
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