diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2023-01-17 14:31:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-17 14:31:10 -0500 |
commit | 8535df676cf52c97ad4806e0aa76aa33eeea7113 (patch) | |
tree | b697b73646f50cd96a1b29b9ea18fc1922588702 /numpy/lib/polynomial.py | |
parent | 90e233a85b9953e084a145e2b4ff0638adc9369a (diff) | |
parent | 2403dbea944a8b0628a9ec44cf630e01566cc989 (diff) | |
download | numpy-8535df676cf52c97ad4806e0aa76aa33eeea7113.tar.gz |
Merge pull request #23020 from seberg/faster-array-function
ENH: Improve array function overhead by using vectorcall
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r-- | numpy/lib/polynomial.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index 0f7ab0334..fb036108a 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -672,7 +672,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=4) + warnings.warn(msg, RankWarning, stacklevel=2) if full: return c, resids, rank, s, rcond |