scipp.testing.assertions.assert_allclose#

scipp.testing.assertions.assert_allclose(a, b, rtol=None, atol=None, **kwargs)#

Raise an AssertionError if two objects don’t have similar values or if their other properties are not identical.

Parameters:
  • a (TypeVar(T)) – The actual object to check.

  • b (TypeVar(T)) – The desired, expected object.

Raises:

AssertionError – If the objects are not identical.

Return type:

None