dca.testing.assert_array_equal#
- dataclass_array.testing.assert_array_equal(x, y, *, atol: float | None = None, rtol: float | None = None) None[source]#
Assert the 2 objects are equals.
Support Dataclass arrays
Compare float arrays with allclose
Contrary to np.testing.assert_allclose, do not convert to array first.
- Parameters:
x – First element to compare
y – Second element to compare
atol – Absolute tolerance
rtol – Relative tolerance