transitio.report.parity_summary#
- transitio.report.parity_summary(report)#
Summarize local-versus-canonical agreement in a merged report.
- Parameters:
report (dict) – A
build_reportresult built with ahostedcanonical report.- Returns:
Per-code agreement buckets:
agreeing(codes both tiers found, with equal occurrence counts),countDisagreements(codes both found with differing counts, each as{"code", "local", "hosted"}),localOnlyandhostedOnlycode lists, andcountsAreLowerBoundscarried over from the summary (local sampling makes disagreement counts indicative, not exact).- Return type:
dict
- Raises:
ValueError – When the report was built without a hosted report.