Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71d51af

Browse files
committed
removed some deprecation warnings from mlab
svn path=/branches/v0_98_5_maint/; revision=7107
1 parent cdd5673 commit 71d51af

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/matplotlib/mlab.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,6 @@ def _spectral_helper(x, y, NFFT=256, Fs=2, detrend=detrend_none,
272272
pad_to = NFFT
273273

274274
if scale_by_freq is None:
275-
warnings.warn("psd, csd, and specgram have changed to scale their "
276-
"densities by the sampling frequency for better MatLab "
277-
"compatibility. You can pass scale_by_freq=False to disable "
278-
"this behavior. Also, one-sided densities are scaled by a "
279-
"factor of 2.")
280275
scale_by_freq = True
281276

282277
# For real x, ignore the negative frequencies unless told otherwise
@@ -1880,8 +1875,6 @@ def identity(n, rank=2, dtype='l', typecode=None):
18801875
much faster.
18811876
"""
18821877
if typecode is not None:
1883-
warnings.warn("Use dtype kwarg instead of typecode",
1884-
DeprecationWarning)
18851878
dtype = typecode
18861879
iden = np.zeros((n,)*rank, dtype)
18871880
for i in range(n):

0 commit comments

Comments
 (0)