Skip to content

report

Report(metrics)

A report containing metrics.

Initialize the report.

Parameters:

Name Type Description Default
metrics dict[str, Any]

The metrics in the report.

required
Source code in src/flowcean/metrics/report.py
 7
 8
 9
10
11
12
13
def __init__(self, metrics: dict[str, Any]) -> None:
    """Initialize the report.

    Args:
        metrics: The metrics in the report.
    """
    self.metrics = metrics

__str__()

Return the string representation of the report.

Source code in src/flowcean/metrics/report.py
15
16
17
18
19
def __str__(self) -> str:
    """Return the string representation of the report."""
    return "\n".join(
        f"{name}: {value}" for name, value in self.metrics.items()
    )