phenotypic.analysis.render_error_analysis_report#

phenotypic.analysis.render_error_analysis_report(results_by_category: dict[str, TypeAliasForwardRef('pandas.DataFrame')]) str[source]#

Render one self-contained HTML report with a section per category.

Used by headless CLI finalize, which writes a single deliverables/error_analysis.html covering every labeled category (the GUI’s render_error_analysis_html() is single-category and transient). Sections are ordered by category token for a stable artifact.

Parameters:

results_by_category (dict[str, TypeAliasForwardRef('pandas.DataFrame')]) – Mapping category token -> ErrorCutoffFinder result frame (category-free RESULT_COLUMNS). An empty mapping yields a valid “no error categories” document.

Returns:

A full <html> document; a “no error categories” body when empty. Pure string build; no Plotly/Dash import.

Return type:

str