summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwarren <warren.weckesser@gmail.com>2022-11-18 10:55:18 -0500
committerwarren <warren.weckesser@gmail.com>2022-11-18 11:02:23 -0500
commitc6e75fce247d3d698ef76bb2c550858d32241268 (patch)
tree1a782e7fce27a64dd132c54df861919cdff78611
parent72af24df557802015820714aaa3d105d53216431 (diff)
downloadnumpy-c6e75fce247d3d698ef76bb2c550858d32241268.tar.gz
DOC: testing: Fix typo: nulps -> nulp
[skip actions] [skip travis] [skip azp]
-rw-r--r--doc/source/release/1.4.0-notes.rst2
-rw-r--r--numpy/testing/_private/utils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/release/1.4.0-notes.rst b/doc/source/release/1.4.0-notes.rst
index 9480a054e..df7b72da6 100644
--- a/doc/source/release/1.4.0-notes.rst
+++ b/doc/source/release/1.4.0-notes.rst
@@ -110,7 +110,7 @@ Testing
#. deprecated decorator: this decorator may be used to avoid cluttering
testing output while testing DeprecationWarning is effectively raised by
the decorated test.
- #. assert_array_almost_equal_nulps: new method to compare two arrays of
+ #. assert_array_almost_equal_nulp: new method to compare two arrays of
floating point values. With this function, two values are considered
close if there are not many representable floating point values in
between, thus being more robust than assert_array_almost_equal when the
diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py
index ea1dc28b5..45400856b 100644
--- a/numpy/testing/_private/utils.py
+++ b/numpy/testing/_private/utils.py
@@ -1626,7 +1626,7 @@ def assert_array_almost_equal_nulp(x, y, nulp=1):
-----
An assertion is raised if the following condition is not met::
- abs(x - y) <= nulps * spacing(maximum(abs(x), abs(y)))
+ abs(x - y) <= nulp * spacing(maximum(abs(x), abs(y)))
Examples
--------