Commit 07751673 authored by René Fritze's avatar René Fritze Committed by René Fritze

[tools] fix partial+defaults interaction in almost_less

parent 8e0f0f90
......@@ -94,4 +94,5 @@ def compare_with_tolerance(x, y, comparison_op, rtol=1e-14, atol=1e-14):
return comparison_op(x-y, atol + y * rtol)
almost_less = partial(compare_with_tolerance, comparison_op=operator.le)
\ No newline at end of file
def almost_less(x, y, rtol=None, atol=None):
return compare_with_tolerance(x, y, operator.le, rtol, atol)
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment