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:
- Returns:
A new report whose sections interleave the source reports’ content.
- Return type:
- Raises:
ValueError – If fewer than two reports are supplied.
See also
from_experiment_resultBuild a single decoding report.
from_reductionsBuild 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")