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 88fdc495ac2a85211201bfff54b0a6ebd7b797be Author: Alexandre Gramfort <[email protected]> Date: Tue Jul 17 13:02:30 2012 +0200 style on stim artifact --- mne/artifacts/stim.py | 9 +++++++-- mne/artifacts/tests/test_stim.py | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/mne/artifacts/stim.py b/mne/artifacts/stim.py index 67fe284..5f65ddd 100644 --- a/mne/artifacts/stim.py +++ b/mne/artifacts/stim.py @@ -1,10 +1,15 @@ +# Authors: Daniel Strohmeier <[email protected]> +# +# License: BSD (3-clause) + import numpy as np from scipy import signal, interpolate from ..fiff import pick_types + def eliminate_stim_artifact(raw, events, event_id, tmin=-0.005, - tmax=0.01, mode='linear'): + tmax=0.01, mode='linear'): """Eliminates stimulations artifacts from raw data The raw object will be modified in place (no copy) @@ -45,7 +50,7 @@ def eliminate_stim_artifact(raw, events, event_id, tmin=-0.005, if mode == 'window': window = 1 - np.r_[signal.hann(4)[:2], np.ones(s_end + s_start - 4), \ signal.hann(4)[-2:]].T - + for k in range(len(event_start)): first_samp = event_start[k] - raw.first_samp - s_start last_samp = event_start[k] - raw.first_samp + s_end diff --git a/mne/artifacts/tests/test_stim.py b/mne/artifacts/tests/test_stim.py index 45be159..5831629 100644 --- a/mne/artifacts/tests/test_stim.py +++ b/mne/artifacts/tests/test_stim.py @@ -1,3 +1,7 @@ +# Authors: Daniel Strohmeier <[email protected]> +# +# License: BSD (3-clause) + import os.path as op import numpy as np -- 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
