imas_validator.rules.helpers.Approx

imas_validator.rules.helpers.Approx(a: Any, b: Any, rtol: float = 1e-05, atol: float = 1e-08) IDSWrapper

Return whether a and b are equal within a tolerance

This method uses numpy.allclose() internally. Please check the numpy documentation for a detailed explanation of the arguments.

Parameters:
a: Any

Inputs to compare

b: Any

Inputs to compare

rtol: float = 1e-05

Relative tolerance parameter

atol: float = 1e-08

Absolute tolerance parameter


Last update: 2025-08-29