diff options
author | Jonathan Helmus <jjhelmus@gmail.com> | 2013-09-16 10:32:25 -0600 |
---|---|---|
committer | Jonathan Helmus <jjhelmus@gmail.com> | 2013-09-16 10:32:25 -0600 |
commit | 9dd212cee1c9ccab6013d52e776bcf6ef712a5e0 (patch) | |
tree | a4a4414bd29efdf3d023fbba9a5d5690063fd579 /numpy/lib/tests/test_function_base.py | |
parent | 9aed31a8ba1607241947bfe886821e9eb09f6ebb (diff) | |
download | numpy-9dd212cee1c9ccab6013d52e776bcf6ef712a5e0.tar.gz |
MAINT: changed 'closest' interpolation to 'nearest'
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 6923f0004..a69c82e18 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1477,11 +1477,11 @@ class TestScoreatpercentile(TestCase): assert_equal(np.percentile(range(10), 51, interpolation='midpoint'), 4.5) - def test_closest(self): + def test_nearest(self): assert_equal(np.percentile(range(10), 51, - interpolation='closest'), 5) + interpolation='nearest'), 5) assert_equal(np.percentile(range(10), 49, - interpolation='closest'), 4) + interpolation='nearest'), 4) def test_sequence(self): x = np.arange(8) * 0.5 |