coco_pipe.report.merge_reports#

coco_pipe.report.merge_reports(*reports, title='Comparison Report')#

Merge multiple reports into a single comparison report.

Each source report’s sections are copied, prefixed with its own title, and appended to the merged output in the order supplied.

Parameters:
  • *reports (Report) – Two or more reports to merge.

  • title (str) – Title for the merged report.

Returns:

A new report whose sections interleave the source reports’ content.

Return type:

Report

Raises:

ValueError – If fewer than two reports are supplied.

See also

from_experiment_result

Build a single decoding report.

from_reductions

Build a single reduction report.

Examples

>>> r1 = make_decoding_report(result_cohort_a)
>>> r2 = make_decoding_report(result_cohort_b)
>>> merged = merge_reports(r1, r2, title="Cross-Cohort Comparison")
>>> merged.save("comparison.html")