10000 DOC: fix some more See Also issues · pentschev/numpy@5343bc8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5343bc8

Browse files
committed
DOC: fix some more See Also issues
These ones just generated warnings, not build failures
1 parent 524abf2 commit 5343bc8

File tree

7 files changed

+15
-21
lines changed

7 files changed

+15
-21
lines changed

numpy/lib/polynomial.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
567567
High-order polynomials may oscillate wildly:
568568
569569
>>> p30 = np.poly1d(np.polyfit(x, y, 30))
570-
...
570+
...
571571
>>> # RankWarning: Polyfit may be poorly conditioned...
572572
>>> p30(4)
573573
-0.80000000000000204 # may vary
@@ -632,7 +632,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
632632
# warn on rank reduction, which indicates an ill conditioned matrix
633633
if rank != order and not full:
634634
msg = "Polyfit may be poorly conditioned"
635-
warnings.warn(msg, RankWarning, stacklevel=2)
635+
warnings.warn(msg, RankWarning, stacklevel=3)
636636

637637
if full:
638638
return c, resids, rank, s, rcond
@@ -874,8 +874,7 @@ def polymul(a1, a2):
874874
See Also
875875
--------
876876
poly1d : A one-dimensional polynomial class.
877-
poly, polyadd, polyder, polydiv, polyfit, polyint, polysub,
878-
polyval
877+
poly, polyadd, polyder, polydiv, polyfit, polyint, polysub, polyval
879878
convolve : Array convolution. Same output as polymul, but has parameter
880879
for overlap mode.
881880
@@ -937,7 +936,7 @@ def polydiv(u, v):
937936
938937
See Also
939938
--------
940-
poly, polyadd, polyder, polydiv, polyfit, polyint, polymul, polysub,
939+
poly, polyadd, polyder, polydiv, polyfit, polyint, polymul, polysub
941940
polyval
942941
943942
Notes

numpy/ma/extras.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ def flatnotmasked_edges(a):
15321532
15331533
See Also
15341534
--------
1535-
flatnotmasked_contiguous, notmasked_contiguous, notmasked_edges,
1535+
flatnotmasked_contiguous, notmasked_contiguous, notmasked_edges
15361536
clump_masked, clump_unmasked
15371537
15381538
Notes
@@ -1593,7 +1593,7 @@ def notmasked_edges(a, axis=None):
15931593
15941594
See Also
15951595
--------
1596-
flatnotmasked_contiguous, flatnotmasked_edges, notmasked_contiguous,
1596+
flatnotmasked_contiguous, flatnotmasked_edges, notmasked_contiguous
15971597
clump_masked, clump_unmasked
15981598
15991599
Examples
@@ -1638,7 +1638,7 @@ def flatnotmasked_contiguous(a):
16381638
16391639
See Also
16401640
--------
1641-
flatnotmasked_edges, notmasked_contiguous, notmasked_edges,
1641+
flatnotmasked_edges, notmasked_contiguous, notmasked_edges
16421642
clump_masked, clump_unmasked
16431643
16441644
Notes
@@ -1698,7 +1698,7 @@ def notmasked_contiguous(a, axis=None):
16981698
16991699
See Also
17001700
--------
1701-
flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges,
1701+
flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges
17021702
clump_masked, clump_unmasked
17031703
17041704
Notes
@@ -1803,7 +1803,7 @@ def clump_unmasked(a):
18031803
18041804
See Also
18051805
--------
1806-
flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges,
1806+
flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges
18071807
notmasked_contiguous, clump_masked
18081808
18091809
Examples
@@ -1842,7 +1842,7 @@ def clump_masked(a):
18421842
18431843
See Also
18441844
--------
1845-
flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges,
1845+
flatnotmasked_edges, flatnotmasked_contiguous, notmasked_edges
18461846
notmasked_contiguous, clump_unmasked
18471847
18481848
Examples

numpy/polynomial/chebyshev.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,7 @@ def chebfromroots(roots):
528528
529529
See Also
530530
--------
531-
polyfromroots, legfromroots, lagfromroots, hermfromroots,
532-
hermefromroots.
531+
polyfromroots, legfromroots, lagfromroots, hermfromroots, hermefromroots
533532
534533
Examples
535534
--------

numpy/polynomial/hermite.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,7 @@ def hermfromroots(roots):
272272
273273
See Also
274274
--------
275-
polyfromroots, legfromroots, lagfromroots, chebfromroots,
276-
hermefromroots.
275+
polyfromroots, legfromroots, lagfromroots, chebfromroots, hermefromroots
277276
278277
Examples
279278
--------

numpy/polynomial/hermite_e.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,7 @@ def hermefromroots(roots):
273273
274274
See Also
275275
--------
276-
polyfromroots, legfromroots, lagfromroots, hermfromroots,
277-
chebfromroots.
276+
polyfromroots, legfromroots, lagfromroots, hermfromroots, chebfromroots
278277
279278
Examples
280279
--------

numpy/polynomial/laguerre.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@ def lagfromroots(roots):
269269
270270
See Also
271271
--------
272-
polyfromroots, legfromroots, chebfromroots, hermfromroots,
273-
hermefromroots.
272+
polyfromroots, legfromroots, chebfromroots, hermfromroots, hermefromroots
274273
275274
Examples
276275
--------

numpy/polynomial/legendre.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,7 @@ def legfromroots(roots):
301301
302302
See Also
303303
--------
304-
polyfromroots, chebfromroots, lagfromroots, hermfromroots,
305-
hermefromroots.
304+
polyfromroots, chebfromroots, lagfromroots, hermfromroots, hermefromroots
306305
307306
Examples
308307
--------

0 commit comments

Comments
 (0)
0