Skip to content

Commit c0843b6

Browse files
committed
More deprecated stuff.
1 parent 4ad8a87 commit c0843b6

File tree

5 files changed

+4
-12
lines changed

5 files changed

+4
-12
lines changed

nitime/algorithms/tests/test_autoregressive.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import numpy as np
22
import numpy.testing as npt
3-
import numpy.testing.decorators as dec
43

54
import nitime.algorithms as tsa
65
import nitime.utils as utils
@@ -87,7 +86,6 @@ def test_AR_LD():
8786
npt.assert_almost_equal(avg_pwr, avg_pwr_est, decimal=0)
8887

8988

90-
@dec.slow
9189
def test_MAR_est_LWR():
9290
"""
9391

nitime/algorithms/tests/test_spectral.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import scipy
88
from scipy import fftpack
99
import numpy.testing as npt
10-
import numpy.testing.decorators as dec
1110
import pytest
1211

1312
import nitime.algorithms as tsa
@@ -320,7 +319,6 @@ def test_mtm_cross_spectrum():
320319
tsa.mtm_cross_spectrum(tspectra, np.r_[tspectra, tspectra], (w, w))
321320

322321

323-
@dec.slow
324322
def test_multi_taper_psd_csd():
325323
"""
326324

nitime/analysis/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
from inspect import getargspec
2+
from inspect import getfullargspec
33

44
from nitime import descriptors as desc
55

@@ -16,7 +16,7 @@ class BaseAnalyzer(desc.ResetMixin):
1616

1717
@desc.setattr_on_read
1818
def parameterlist(self):
19-
plist = getargspec(self.__init__).args
19+
plist = getfullargspec(self.__init__).args
2020
plist.remove('self')
2121
plist.remove('input')
2222
return plist

nitime/tests/test_algorithms.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import numpy as np
44
import numpy.testing as npt
5-
import numpy.testing.decorators as dec
65

76
from scipy.signal import signaltools
87
from scipy import fftpack
@@ -161,7 +160,7 @@ def test_psd_matlab():
161160

162161
npt.assert_almost_equal(fxx_mlab, fxx_matlab, decimal=5)
163162

164-
@dec.slow
163+
165164
def test_long_dpss_win():
166165
""" Test that very long dpss windows can be generated (using interpolation)"""
167166

nitime/viz.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
import sys
1010
from nitime.six.moves import map
1111
from nitime.six.moves import zip
12-
if "nose" in sys.modules:
13-
import matplotlib
14-
matplotlib.use('agg')
1512

1613
# Then do all the rest of it:
1714
import numpy as np
@@ -20,7 +17,7 @@
2017
from matplotlib import pyplot as plt
2118
import matplotlib.ticker as ticker
2219
import matplotlib.colors as colors
23-
from mpl_toolkits.axes_grid import make_axes_locatable
20+
from mpl_toolkits.axes_grid1 import make_axes_locatable
2421

2522
from nitime import timeseries as ts
2623
import nitime.utils as tsu

0 commit comments

Comments
 (0)