\(\renewcommand\AA{\unicode{x212B}}\)

assert_almost_equal

This is a Python function for testing if two modules are within a tolerance

Raises an assertion error if two workspaces are not within specified tolerance.

Parameters

Workspace1, Workspace2Workspace

Input workspaces to compare.

rtolfloat

The relative tolerance parameter.

atolfloat

The absolute tolerance parameter.

Raises

AssertionError

If Workspace1 and Workspace2 are not equal up to specified precision

ValueError

If atol and rtol are both provided

See Also

CompareWorkspaces v1