Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cdb4209

Browse filesBrowse files
committed
Remove alternative for ispower2
1 parent ecc0912 commit cdb4209
Copy full SHA for cdb4209

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/mlab.py

Copy file name to clipboardExpand all lines: lib/matplotlib/mlab.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.