[med-svn] [python-mne] 319/376: ENH : using local imports in tests
Yaroslav Halchenko
debian at onerussian.com
Fri Nov 27 17:23: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 46e12916b41138910571c583f36e1a120074d0b0
Author: Alexandre Gramfort <alexandre.gramfort at inria.fr>
Date: Thu Jul 7 12:27:55 2011 +0200
ENH : using local imports in tests
---
mne/time_frequency/tests/test_tfr.py | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/mne/time_frequency/tests/test_tfr.py b/mne/time_frequency/tests/test_tfr.py
index ccc76a7..b73545a 100644
--- a/mne/time_frequency/tests/test_tfr.py
+++ b/mne/time_frequency/tests/test_tfr.py
@@ -2,10 +2,9 @@ import numpy as np
import os.path as op
from numpy.testing import assert_array_almost_equal
-import mne
-from mne import fiff
-from mne.time_frequency import induced_power, single_trial_power
-from mne.time_frequency.tfr import cwt_morlet
+from ... import fiff, Epochs, read_events
+from ...time_frequency import induced_power, single_trial_power
+from ...time_frequency.tfr import cwt_morlet
raw_fname = op.join(op.dirname(__file__), '..', '..', 'fiff', 'tests', 'data',
'test_raw.fif')
@@ -22,7 +21,7 @@ def test_time_frequency():
# Setup for reading the raw data
raw = fiff.Raw(raw_fname)
- events = mne.read_events(event_fname)
+ events = read_events(event_fname)
include = []
exclude = raw.info['bads'] + ['MEG 2443', 'EEG 053'] # bads + 2 more
@@ -32,7 +31,7 @@ def test_time_frequency():
stim=False, include=include, exclude=exclude)
picks = picks[:2]
- epochs = mne.Epochs(raw, events, event_id, tmin, tmax, picks=picks,
+ epochs = Epochs(raw, events, event_id, tmin, tmax, picks=picks,
baseline=(None, 0))
data = epochs.get_data()
times = epochs.times
--
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