lir.config.metrics module

lir.config.metrics.parse_individual_metric(name: str, output_path: Path, context: list[str]) Callable[source]

Parse one metric from the registry.

Parameters:
  • name (str) – Registered metric name.

  • output_path (Path) – Output path passed to the metric parser.

  • context (list[str]) – YAML context used for error reporting.

Returns:

Metric callable.

Return type:

Callable