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

Skip to content

Commit cdb4209

Browse files
committed
Remove alternative for ispower2
1 parent ecc0912 commit cdb4209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/mlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2287,7 +2287,7 @@ def log2(x, ln2=math.log(2.0)):
22872287
return len(bin_n)
22882288

22892289

2290-
@cbook.deprecated("2.2", 'numpy.mod(n, 2)')
2290+
@cbook.deprecated("2.2")
22912291
def ispower2(n):
22922292
"""
22932293
Returns the log base 2 of *n* if *n* is a power of 2, zero otherwise.

0 commit comments

Comments
 (0)