summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-11-15 16:13:50 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2021-11-15 17:32:35 -0600
commit546c47adae1066411ff7a3e3da5d758236ee90cf (patch)
treed9eadd368749f4b804d8c5191df2035b2e2f0eec
parentbe1571669a4544af83dd2402b50f52260c19d52b (diff)
downloadnumpy-546c47adae1066411ff7a3e3da5d758236ee90cf.tar.gz
DOC: Fixups for interpolation rename comments from review
Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
-rw-r--r--numpy/core/tests/test_deprecations.py2
-rw-r--r--numpy/lib/function_base.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/tests/test_deprecations.py b/numpy/core/tests/test_deprecations.py
index 93e07216b..94583a5ee 100644
--- a/numpy/core/tests/test_deprecations.py
+++ b/numpy/core/tests/test_deprecations.py
@@ -1246,7 +1246,7 @@ class TestQuantileInterpolationDeprecation(_DeprecationTestCase):
[np.percentile, np.quantile, np.nanpercentile, np.nanquantile])
def test_both_passed(self, func):
with warnings.catch_warnings():
- # catch the warning, but make sure it does not raise:
+ # catch the DeprecationWarning so that it does not raise:
warnings.simplefilter("always", DeprecationWarning)
with pytest.raises(TypeError):
func([0., 1.], 0., interpolation="nearest", method="nearest")
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 6d84627cd..a215f63d3 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -61,7 +61,7 @@ __all__ = [
# is made of a integer part (a.k.a 'i' or 'left') and a fractional part
# (a.k.a 'g' or 'gamma')
#
-# Each _QuantileMethods has two properties
+# Each method in _QuantileMethods has two properties
# get_virtual_index : Callable
# The function used to compute the virtual_index.
# fix_gamma : Callable