oqp.interop.compare
Tolerance harness: diff an OQP result against a parsed external result.
Functions
|
|
|
Module Contents
- compare_results(ref, other, tolerances, ref_label='OQP', other_label='external')
Compare two normalized result dicts under per-key tolerances. Returns ``(rows, all_pass)`` where each row is ``(quantity, delta, tolerance, status, note)``. A length mismatch (e.g. the external code reported fewer states) is a FAIL, not a prefix-only PASS.
- format_table(rows, ref_label='OQP', other_label='external', title=None)