[med-svn] [python-mne] 278/353: API : rename to generate_sparse_stc
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:25:15 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 53480e5881843521df17b8447d598ac87fddb0e3
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Mon Jul 16 19:43:45 2012 +0200
API : rename to generate_sparse_stc
---
examples/plot_simulate_evoked_data.py | 4 ++--
mne/simulation/__init__.py | 2 +-
mne/simulation/sim_evoked.py | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/examples/plot_simulate_evoked_data.py b/examples/plot_simulate_evoked_data.py
index e68de68..7d4c9b5 100644
--- a/examples/plot_simulate_evoked_data.py
+++ b/examples/plot_simulate_evoked_data.py
@@ -17,7 +17,7 @@ from mne.fiff.pick import pick_types_evoked, pick_types_forward
from mne.datasets import sample
from mne.time_frequency import fir_filter_raw, morlet
from mne.viz import plot_evoked, plot_sparse_source_estimates
-from mne.simulation import generate_stc, generate_evoked
+from mne.simulation import generate_sparse_stc, generate_evoked
###############################################################################
# Load real data as templates
@@ -63,7 +63,7 @@ stc_data *= 100 * 1e-9 # use nAm as unit
# time translation
stc_data[1] = np.roll(stc_data[1], 80)
-stc = generate_stc(fwd, labels, stc_data, tmin, tstep, random_state=0)
+stc = generate_sparse_stc(fwd, labels, stc_data, tmin, tstep, random_state=0)
###############################################################################
# Generate noisy evoked data
diff --git a/mne/simulation/__init__.py b/mne/simulation/__init__.py
index 975658a..45119aa 100644
--- a/mne/simulation/__init__.py
+++ b/mne/simulation/__init__.py
@@ -1,5 +1,5 @@
"""Data simulation code
"""
-from .sim_evoked import select_source_in_label, generate_stc, \
+from .sim_evoked import select_source_in_label, generate_sparse_stc, \
generate_evoked
diff --git a/mne/simulation/sim_evoked.py b/mne/simulation/sim_evoked.py
index b4f9135..b314d7b 100644
--- a/mne/simulation/sim_evoked.py
+++ b/mne/simulation/sim_evoked.py
@@ -162,7 +162,7 @@ def select_source_in_label(fwd, label, random_state=None):
return lh_vertno, rh_vertno
-def generate_stc(fwd, labels, stc_data, tmin, tstep, random_state=0):
+def generate_sparse_stc(fwd, labels, stc_data, tmin, tstep, random_state=0):
"""Generate sources time courses from waveforms and labels
Parameters
--
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