Skip to content

Commit b7fa23e

Browse files
committed
Use all close for comparing expected all_array value
1 parent f635f4d commit b7fa23e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_diffraction_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def test_all_array_getter():
361361
[3.0, 1.0, 180.0, 1.0 * 2 * np.pi],
362362
]
363363
)
364-
assert np.array_equal(actual_do.all_arrays, expected_all_arrays)
364+
assert np.allclose(actual_do.all_arrays, expected_all_arrays)
365365

366366

367367
def test_all_array_setter():

0 commit comments

Comments
 (0)