pycsamt.pipeline.plot#
Plot helpers for pycsamt.pipeline results.
The pipeline engine stores step timing, status, station counts, and generated
plot paths in pycsamt.pipeline.PipelineResult. This module provides
small Matplotlib helpers for turning that metadata into review figures that
work in notebooks, reports, and the documentation gallery.
Functions
|
Create a compact dashboard for a completed pipeline run. |
|
Plot per-step success status for a pipeline run. |
|
Plot elapsed time per pipeline step. |
|
Plot station counts entering and leaving each pipeline step. |
|
- pycsamt.pipeline.plot.plot_pipeline_dashboard(result, *, figsize=(12.0, 8.0))[source]#
Create a compact dashboard for a completed pipeline run.
The dashboard combines run-level cards, per-step status, timing, station-count flow, and generated-figure counts. It is the most useful single figure to place in a processing report or notebook.
- Returns:
Figure containing the dashboard.
- Return type:
- Parameters:
result (PipelineResult)
- pycsamt.pipeline.plot.plot_pipeline_status(result, *, ax=None, ok_color='#2f9e44', error_color='#c92a2a', annotate_errors=True)[source]#
Plot per-step success status for a pipeline run.
Failed steps are coloured red and, when available, the exception message is written below the corresponding bar. Empty results draw a neutral placeholder instead of failing.
- pycsamt.pipeline.plot.plot_pipeline_timing(result, *, ax=None, color='#2f6f8f', slow_color='#f08c00', slow_quantile=0.8, annotate=True)[source]#
Plot elapsed time per pipeline step.
Steps above slow_quantile are highlighted, helping users quickly spot expensive processing or plotting stages.
- pycsamt.pipeline.plot.plot_site_count_flow(result, *, ax=None, color_in='#687582', color_out='#7c4d79', drop_color='#c92a2a', annotate=True)[source]#
Plot station counts entering and leaving each pipeline step.
A faint red band marks steps where the output site count is lower than the input site count, which is useful for QC workflows that reject stations.