transitio.report.parity_summary

Contents

transitio.report.parity_summary#

transitio.report.parity_summary(report)#

Summarize local-versus-canonical agreement in a merged report.

Parameters:

report (dict) – A build_report result built with a hosted canonical 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"}), localOnly and hostedOnly code lists, and countsAreLowerBounds carried 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.