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 e36c38c77b3399361ae53101afaff5f5880fdb03 Author: Alexandre Gramfort <[email protected]> Date: Sun May 8 15:36:57 2011 -0400 ENH : adding time_func in apply_inverse_raw --- mne/minimum_norm/inverse.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mne/minimum_norm/inverse.py b/mne/minimum_norm/inverse.py index ab27cbf..0bdb025 100755 --- a/mne/minimum_norm/inverse.py +++ b/mne/minimum_norm/inverse.py @@ -502,7 +502,8 @@ def apply_inverse(evoked, inverse_operator, lambda2, dSPM=True): def apply_inverse_raw(raw, inverse_operator, lambda2, dSPM=True, - label=None, start=None, stop=None, nave=1): + label=None, start=None, stop=None, nave=1, + time_func=None): """Apply inverse operator to Raw data Computes a L2-norm inverse solution @@ -528,6 +529,8 @@ def apply_inverse_raw(raw, inverse_operator, lambda2, dSPM=True, nave: int Number of averages used to regularize the solution. Set to 1 on raw data. + time_func: callable + Linear function applied to sensor space time series. Returns ------- stc: SourceEstimate @@ -558,6 +561,9 @@ def apply_inverse_raw(raw, inverse_operator, lambda2, dSPM=True, data, times = raw[sel, start:stop] + if time_func is not None: + data = time_func(data) + trans = inv['reginv'][:, None] * reduce(np.dot, [inv['eigen_fields']['data'], inv['whitener'], -- 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
