diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-11-15 16:13:50 -0600 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-11-15 17:32:35 -0600 |
commit | 546c47adae1066411ff7a3e3da5d758236ee90cf (patch) | |
tree | d9eadd368749f4b804d8c5191df2035b2e2f0eec | |
parent | be1571669a4544af83dd2402b50f52260c19d52b (diff) | |
download | numpy-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.py | 2 | ||||
-rw-r--r-- | numpy/lib/function_base.py | 2 |
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 |