[med-svn] [python-mne] 93/376: FIX : in TFR phase lock
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:22:15 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 08c470ed8c08c5f40f2e7b34f99744f2d8480c5b
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Fri Feb 25 13:02:32 2011 -0500
FIX : in TFR phase lock
---
mne/tfr.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mne/tfr.py b/mne/tfr.py
index 0fce274..3b47eb1 100644
--- a/mne/tfr.py
+++ b/mne/tfr.py
@@ -191,7 +191,7 @@ def time_frequency(epochs, Fs, frequencies, use_fft=True, n_cycles=25):
n_frequencies = len(frequencies)
n_epochs, n_channels, n_times = epochs.shape
psd = np.zeros((n_channels, n_frequencies, n_times)) # PSD
- plf = np.zeros((n_channels, n_frequencies, n_times)) # phase lock
+ plf = np.zeros((n_channels, n_frequencies, n_times), dtype=np.complex) # phase lock
for c in range(n_channels):
for e in range(n_epochs):
tfr = cwt_morlet(epochs[e, c, :].ravel(), Fs, frequencies,
--
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