Skip to content

Commit 45947a1

Browse files
committed
Use a 2D array in the README examples so they work with the default text format
1 parent 059d781 commit 45947a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function returns a plain Numpy array::
6969

7070
@pytest.mark.array_compare
7171
def test_succeeds():
72-
return np.arange(3 * 5 * 4).reshape((3, 5, 4))
72+
return np.arange(3 * 5).reshape((3, 5))
7373

7474
To generate the reference data files, run the tests with the
7575
``--arraydiff-generate-path`` option with the name of the directory
@@ -106,7 +106,7 @@ it::
106106
import numpy as np
107107

108108
def test_succeeds(array_compare):
109-
array_compare.check(np.arange(3 * 5 * 4).reshape((3, 5, 4)))
109+
array_compare.check(np.arange(3 * 5).reshape((3, 5)))
110110

111111
``array_compare.check`` accepts the same keyword arguments as the marker
112112
(``file_format``, ``atol``, ``rtol``, ``reference_dir``, and so on), and

0 commit comments

Comments
 (0)