[med-svn] [python-mne] 270/353: changed array to tuple in call to interp1d

Yaroslav Halchenko debian at onerussian.com
Fri Nov 27 17:25:14 UTC 2015


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 55fb03626957774e292ad70cc2f6b0ac1661d4a6
Author: Daniel Strohmeier <daniel.strohmeier at googlemail.com>
Date:   Sat Jul 14 18:54:33 2012 +0200

    changed array to tuple in call to interp1d
---
 mne/artifacts/stim.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mne/artifacts/stim.py b/mne/artifacts/stim.py
index 218611b..67fe284 100644
--- a/mne/artifacts/stim.py
+++ b/mne/artifacts/stim.py
@@ -52,7 +52,7 @@ def eliminate_stim_artifact(raw, events, event_id, tmin=-0.005,
         data, _ = raw[picks, first_samp:last_samp]
         if mode == 'linear':
             x = np.array([first_samp, last_samp])
-            f = interpolate.interp1d(x, data[:, [0, -1]])
+            f = interpolate.interp1d(x, data[:, (0, -1)])
             xnew = np.arange(first_samp, last_samp)
             interp_data = f(xnew)
             raw[picks, first_samp:last_samp] = interp_data

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