clockblocks.utilities.near_equal

clockblocks.utilities.near_equal(a: float, b: float, *, rel_tol: float = 1e-09, abs_tol: float = 1e-12) → bool[source]

True if a and b are equal to within floating-point reconstruction noise.

Thin wrapper over math.isclose() with project-wide default tolerances plus a small absolute floor: math.isclose defaults abs_tol=0.0, which is too strict near zero, and several callers compare quantities that can be ~0 (e.g. envelope-segment durations).