src.report.simple_curve_report
Classes
|
- class src.report.simple_curve_report.SimpleCurveReport(**kwargs)
- Author:
Alberto M. Esmoris Pena
Class to handle the textual report associated with a
SimpleCurveEvaluation. The report is split into a summary section (Coverage, Deviation, Hallucination, Self-intersections, Gaps) and an optional CSV-like per-feature hallucination report.Deviation is length-anchored over the extracted polyline 3D arc (the ratio of polyline length where no curve-class input neighbour lies within
hallucination_radiusbut at least one any-class input neighbour does); the report column is labelledDeviation (length 3D)so logs are visibly distinguishable from the previous point-anchored definition.See
ReportandSimpleCurveEvaluation.- __init__(**kwargs)
Initialize a SimpleCurveReport.
- Parameters:
kwargs – The attributes for the report. They mirror those produced by
SimpleCurveEvaluation.
- to_file(report_path, hallucination_report_path=None, out_prefix=None)
Write the report and the optional per-feature hallucination CSV.
- Parameters:
report_path (str) – Path to the textual KPI report.
hallucination_report_path (str or None) – Optional path to the per-feature hallucination CSV.
out_prefix (str or None) – Optional output prefix used to expand
*-prefixed paths.
- Returns:
Nothing; output is written to disk.