diff options
Diffstat (limited to 'numpy/polynomial')
-rw-r--r-- | numpy/polynomial/chebyshev.py | 2 | ||||
-rw-r--r-- | numpy/polynomial/hermite.py | 2 | ||||
-rw-r--r-- | numpy/polynomial/hermite_e.py | 2 | ||||
-rw-r--r-- | numpy/polynomial/laguerre.py | 2 | ||||
-rw-r--r-- | numpy/polynomial/legendre.py | 2 | ||||
-rw-r--r-- | numpy/polynomial/polynomial.py | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/numpy/polynomial/chebyshev.py b/numpy/polynomial/chebyshev.py index 2537bea32..dd346fbda 100644 --- a/numpy/polynomial/chebyshev.py +++ b/numpy/polynomial/chebyshev.py @@ -1782,7 +1782,7 @@ def chebfit(x, y, deg, rcond=None, full=False, w=None): # warn on rank reduction if rank != order and not full: msg = "The fit may be poorly conditioned" - warnings.warn(msg, pu.RankWarning) + warnings.warn(msg, pu.RankWarning, stacklevel=2) if full: return c, [resids, rank, s, rcond] diff --git a/numpy/polynomial/hermite.py b/numpy/polynomial/hermite.py index e234c8e23..06d68668f 100644 --- a/numpy/polynomial/hermite.py +++ b/numpy/polynomial/hermite.py @@ -1558,7 +1558,7 @@ def hermfit(x, y, deg, rcond=None, full=False, w=None): # warn on rank reduction if rank != order and not full: msg = "The fit may be poorly conditioned" - warnings.warn(msg, pu.RankWarning) + warnings.warn(msg, pu.RankWarning, stacklevel=2) if full: return c, [resids, rank, s, rcond] diff --git a/numpy/polynomial/hermite_e.py b/numpy/polynomial/hermite_e.py index 8fdcbf666..a846b167c 100644 --- a/numpy/polynomial/hermite_e.py +++ b/numpy/polynomial/hermite_e.py @@ -1555,7 +1555,7 @@ def hermefit(x, y, deg, rcond=None, full=False, w=None): # warn on rank reduction if rank != order and not full: msg = "The fit may be poorly conditioned" - warnings.warn(msg, pu.RankWarning) + warnings.warn(msg, pu.RankWarning, stacklevel=2) if full: return c, [resids, rank, s, rcond] diff --git a/numpy/polynomial/laguerre.py b/numpy/polynomial/laguerre.py index d459551ae..60728c5f9 100644 --- a/numpy/polynomial/laguerre.py +++ b/numpy/polynomial/laguerre.py @@ -1557,7 +1557,7 @@ def lagfit(x, y, deg, rcond=None, full=False, w=None): # warn on rank reduction if rank != order and not full: msg = "The fit may be poorly conditioned" - warnings.warn(msg, pu.RankWarning) + warnings.warn(msg, pu.RankWarning, stacklevel=2) if full: return c, [resids, rank, s, rcond] diff --git a/numpy/polynomial/legendre.py b/numpy/polynomial/legendre.py index 54e9895db..ec6c2f8bf 100644 --- a/numpy/polynomial/legendre.py +++ b/numpy/polynomial/legendre.py @@ -1585,7 +1585,7 @@ def legfit(x, y, deg, rcond=None, full=False, w=None): # warn on rank reduction if rank != order and not full: msg = "The fit may be poorly conditioned" - warnings.warn(msg, pu.RankWarning) + warnings.warn(msg, pu.RankWarning, stacklevel=2) if full: return c, [resids, rank, s, rcond] diff --git a/numpy/polynomial/polynomial.py b/numpy/polynomial/polynomial.py index c310d659d..3ed6b67a4 100644 --- a/numpy/polynomial/polynomial.py +++ b/numpy/polynomial/polynomial.py @@ -1493,7 +1493,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None): # warn on rank reduction if rank != order and not full: msg = "The fit may be poorly conditioned" - warnings.warn(msg, pu.RankWarning) + warnings.warn(msg, pu.RankWarning, stacklevel=2) if full: return c, [resids, rank, s, rcond] |