Skip to content

Commit 912fdaa

Browse files
committed
Merge pull request #732 from pymc-devs/rank-to-ndim
Replace numpy.rank with numpy.ndim
2 parents 31e2e1c + 88d0e6f commit 912fdaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/diagnostics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def geweke(x, first=.1, last=.5, intervals=20):
5050
Geweke (1992)
5151
"""
5252

53-
if np.rank(x) > 1:
53+
if np.ndim(x) > 1:
5454
return [geweke(y, first, last, intervals) for y in np.transpose(x)]
5555

5656
# Filter out invalid intervals

0 commit comments

Comments
 (0)