summaryrefslogtreecommitdiff
path: root/numpy/polynomial/hermite.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2016-01-23 15:58:58 +0100
committerSebastian Berg <sebastian@sipsolutions.net>2016-09-02 16:39:17 +0200
commit7884a8c9f5f5c6657413dbeaa59ad969280d38ea (patch)
tree91b55f723315291bf2605bb42aef809a65ff1d85 /numpy/polynomial/hermite.py
parent9164f23c19c049e28d4d4825a53bbb01aedabcfc (diff)
downloadnumpy-7884a8c9f5f5c6657413dbeaa59ad969280d38ea.tar.gz
ENH: Add stacklevel to all (or almost all) our function calls
Diffstat (limited to 'numpy/polynomial/hermite.py')
-rw-r--r--numpy/polynomial/hermite.py2
1 files changed, 1 insertions, 1 deletions
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]