Skip to content

pyflightstream.post.diagnostics (stable)

Generated from the docstrings at build time: every one of the 3 names in the __all__ of pyflightstream.post.diagnostics has an entry below. The names a guide or an example uses come first; the others follow under Advanced.

Read-only Markdown diagnostics and concise warning presentation.

render_post_diagnostics reads existing post logs only. It neither executes post stages nor writes products, guides, manifests, or archives. Every report identifies its recorded timestamp; an absent log is explicitly unavailable.

Advanced

pyflightstream.post.diagnostics.render_post_diagnostics

render_post_diagnostics(log_paths: Sequence[Path]) -> str

Render all recorded diagnostics, clearly separating missing records.

The function returns Markdown and performs no writes. Older logs without categories remain readable; their classification is presentation only. Malformed logs raise a named argument error rather than report a clean run.

Parameters:

Name Type Description Default
log_paths sequence of Path

The post logs to read, one section each.

required

Returns:

Type Description
str

The Markdown report.

Raises:

Type Description
ProductArgumentError

If a log cannot be read, or is not an object holding a list of records.

pyflightstream.post.diagnostics.report_post_warnings

report_post_warnings(
    records: Sequence[Mapping[str, str | None]],
    log_path: Path,
) -> None

Print category totals only when this CLI invocation opted in.

Parameters:

Name Type Description Default
records sequence of mapping

The diagnostic records of the invocation, each with its category and severity.

required
log_path Path

The log holding the details, named in each line.

required

pyflightstream.post.diagnostics.warning_category

warning_category(product: str, message: str) -> str

Assign a stable presentation category without changing warning detail.

Parameters:

Name Type Description Default
product str

The product the warning is about.

required
message str

The warning's text.

required

Returns:

Type Description
str

One of configuration, convergence, missing-data, postprocessing, reference-frame and section-layout.