summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2019-04-14 22:11:15 +0200
committerRalf Gommers <ralf.gommers@gmail.com>2019-04-14 22:31:34 +0200
commit5343bc84bbbd36df73b4678d5f58c2cbcc1dda85 (patch)
tree943e3c9b74fb6243299b8dd07f22d0baf17487dc
parent524abf2f43b0f6d5baaec14c5e1a5feb53610f73 (diff)
downloadnumpy-5343bc84bbbd36df73b4678d5f58c2cbcc1dda85.tar.gz
DOC: fix some more See Also issues
These ones just generated warnings, not build failures
-rw-r--r--numpy/lib/polynomial.py9
-rw-r--r--numpy/ma/extras.py12
-rw-r--r--numpy/polynomial/chebyshev.py3
-rw-r--r--numpy/polynomial/hermite.py3
-rw-r--r--numpy/polynomial/hermite_e.py3
-rw-r--r--numpy/polynomial/laguerre.py3
-rw-r--r--numpy/polynomial/legendre.py3
7 files changed, 15 insertions, 21 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py
index b55764b5d..62f96f773 100644
--- a/numpy/lib/polynomial.py
+++ b/numpy/lib/polynomial.py
@@ -567,7 +567,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
High-order polynomials may oscillate wildly:
>>> p30 = np.poly1d(np.polyfit(x, y, 30))
- ...
+ ...
>>> # RankWarning: Polyfit may be poorly conditioned...
>>> p30(4)
-0.80000000000000204 # may vary
@@ -632,7 +632,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
# warn on rank reduction, which indicates an ill conditioned matrix
if rank != order and not full:
msg = "Polyfit may be poorly conditioned"
- warnings.warn(msg, RankWarning, stacklevel=2)
+ warnings.warn(msg, RankWarning, stacklevel=3)
if full:
return c, resids, rank, s, rcond
@@ -874,8 +874,7 @@ def polymul(a1, a2):
See Also
--------
poly1d : A one-dimensional polynomial class.
- poly, polyadd, polyder, polydiv, polyfit, polyint, polysub,
- polyval
+ poly, polyadd, polyder, polydiv, polyfit, polyint, polysub, polyval
convolve : Array convolution. Same output as polymul, but has parameter
for overlap mode.
@@ -937,7 +936,7 @@ def polydiv(u, v):
See Also
--------
- poly, polyadd, polyder, polydiv, polyfit, polyint, polymul, polysub,
+ poly, polyadd, polyder, polydiv, polyfit, polyint, polymul, polysub
polyval
Notes
diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py
index a51d83578..639b3dd1f 100644
--- a/numpy/ma/extras.py
+++ b/numpy/ma/extras.py
@@ -1532,7 +1532,7 @@ def flatnotmasked_edges(a):
See Also
--------
- flatnotmasked_contiguous, notmasked_contiguous, notmasked_edges,
+ flatnotmasked_contiguous, notmasked_contiguous, notmasked_edges
clump_masked, clump_unmasked
Notes
@@ -1593,7 +1593,7 @@ def notmasked_edges(a, axis=None):
See Also
--------
- flatnotmasked_contiguous, flatnotmasked_edges, notmasked_contiguous,
+ flatnotmasked_contiguous, flatnotmasked_edges, notmasked_contiguous
clump_masked, clump_unmasked
Examples
@@ -1638,7 +1638,7 @@ def flatnotmasked_contiguous(a):
See Also
--------
- flatnotmasked_edges, notmasked_contiguous, notmasked_edges,
+ flatnotmasked_edges, notmasked_contiguous, notmasked_edges
clump_masked, clump_unmasked
Notes
@@ -1698,7 +1698,7 @@ def notmasked_contiguous(a, axis=None):
See Also
--------
- flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges,
+ flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges
clump_masked, clump_unmasked
Notes
@@ -1803,7 +1803,7 @@ def clump_unmasked(a):
See Also
--------
- flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges,
+ flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges
notmasked_contiguous, clump_masked
Examples
@@ -1842,7 +1842,7 @@ def clump_masked(a):
See Also
--------
- flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges,
+ flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges
notmasked_contiguous, clump_unmasked
Examples
diff --git a/numpy/polynomial/chebyshev.py b/numpy/polynomial/chebyshev.py
index b5ba1bd2a..e4d10bcb8 100644
--- a/numpy/polynomial/chebyshev.py
+++ b/numpy/polynomial/chebyshev.py
@@ -528,8 +528,7 @@ def chebfromroots(roots):
See Also
--------
- polyfromroots, legfromroots, lagfromroots, hermfromroots,
- hermefromroots.
+ polyfromroots, legfromroots, lagfromroots, hermfromroots, hermefromroots
Examples
--------
diff --git a/numpy/polynomial/hermite.py b/numpy/polynomial/hermite.py
index 73c35098e..4bfd89e52 100644
--- a/numpy/polynomial/hermite.py
+++ b/numpy/polynomial/hermite.py
@@ -272,8 +272,7 @@ def hermfromroots(roots):
See Also
--------
- polyfromroots, legfromroots, lagfromroots, chebfromroots,
- hermefromroots.
+ polyfromroots, legfromroots, lagfromroots, chebfromroots, hermefromroots
Examples
--------
diff --git a/numpy/polynomial/hermite_e.py b/numpy/polynomial/hermite_e.py
index aa5b62df0..735d66e6c 100644
--- a/numpy/polynomial/hermite_e.py
+++ b/numpy/polynomial/hermite_e.py
@@ -273,8 +273,7 @@ def hermefromroots(roots):
See Also
--------
- polyfromroots, legfromroots, lagfromroots, hermfromroots,
- chebfromroots.
+ polyfromroots, legfromroots, lagfromroots, hermfromroots, chebfromroots
Examples
--------
diff --git a/numpy/polynomial/laguerre.py b/numpy/polynomial/laguerre.py
index a402b0191..025a09929 100644
--- a/numpy/polynomial/laguerre.py
+++ b/numpy/polynomial/laguerre.py
@@ -269,8 +269,7 @@ def lagfromroots(roots):
See Also
--------
- polyfromroots, legfromroots, chebfromroots, hermfromroots,
- hermefromroots.
+ polyfromroots, legfromroots, chebfromroots, hermfromroots, hermefromroots
Examples
--------
diff --git a/numpy/polynomial/legendre.py b/numpy/polynomial/legendre.py
index 731172e53..f06b294cf 100644
--- a/numpy/polynomial/legendre.py
+++ b/numpy/polynomial/legendre.py
@@ -301,8 +301,7 @@ def legfromroots(roots):
See Also
--------
- polyfromroots, chebfromroots, lagfromroots, hermfromroots,
- hermefromroots.
+ polyfromroots, chebfromroots, lagfromroots, hermfromroots, hermefromroots
Examples
--------