log2Report.generateCompareReport.collectComparisonWarnings

collectComparisonWarnings(reportD, benchD, cfgRep)[source]

Collect the comparison warnings that writeCompareReport flags in red.

Returns a structured list of warnings (one dict per flagged item) instead of writing markdown. Mirrors the flag logic of writeCompareReport so the summary stays consistent with the rendered report.

Parameters
  • reportD (dict) – report dictionary with simulation info

  • benchD (dict) – dictionary with reference simulation info

  • cfgRep (dict) – dictionary with configuration info (uses GENERAL.diffLim and GENERAL.perDiff)

Returns

warnings – each dict has ‘category’ and ‘field’; see categories below

Return type

list[dict]