Skip to content

Commit 8be79f4

Browse files
committed
FIX: Accommodate recent versions of matplotlib and scipy
1 parent f3434bb commit 8be79f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nitime/analysis/spectral.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ def iir(self):
418418

419419
wp = [lb_frac, ub_frac]
420420

421-
ws = [np.max([lb_frac - 0.1, 0]),
422-
np.min([ub_frac + 0.1, 1.0])]
421+
ws = [np.max([lb_frac - 0.1, 0.001]),
422+
np.min([ub_frac + 0.1, 0.999])]
423423

424424
# For the lowpass:
425425
elif lb_frac == 0:

nitime/tests/test_algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def test_psd_matlab():
149149

150150
NFFT = 256
151151
Fs = 1.0
152-
noverlap = NFFT / 2
152+
noverlap = NFFT // 2
153153

154154
fxx, f = mlab.psd(ts0, NFFT=NFFT, Fs=Fs, noverlap=noverlap,
155155
scale_by_freq=True)

0 commit comments

Comments
 (0)