utility
Shared dataclasses returned by all Runner classes when you call get_statistics()
or get_modifications(). Import them only if you need to type-hint or inspect
these objects programmatically.
from pyadps.processing.utility import QCCheckStats, DataModificationStats, QCPipelineReport
QCCheckStats
Returned in the dict from runner.get_statistics(), keyed by check name.
Attribute |
Type |
Description |
|---|---|---|
|
str |
Name of the check (e.g. |
|
float / list / tuple |
Threshold value(s) used |
|
int |
Cells already masked before this check |
|
int |
Cells flagged by this check |
|
int |
Cumulative masked cells after this check |
|
int |
Total cells in the dataset |
|
float |
Percent masked before this check |
|
float |
Percent flagged by this check (impact) |
|
float |
Cumulative percent masked |
|
int |
Cells still valid after this check |
|
float |
Percent still valid |
|
dict |
JSON-serializable representation |
stats = runner.get_statistics()
for name, s in stats.items():
print(f"{name}: {s.newly_masked_pct:.1f}% flagged, {s.valid_pct:.1f}% valid")
DataModificationStats
Returned in the dict from runner.get_modifications(), keyed by variable name.
Attribute |
Type |
Description |
|---|---|---|
|
str |
Operation name (e.g. |
|
str |
Dataset variable that was modified |
|
dict |
|
|
dict |
|
|
float | None |
Absolute change in mean |
|
float | None |
Percentage change in mean |
|
dict |
JSON-serializable representation |
QCPipelineReport
Returned by runner.get_pipeline_report(). Aggregates all checks and
modifications for one processing stage. Used internally by ProcessedDataset
to build the full-pipeline summary.
Attribute |
Type |
Description |
|---|---|---|
|
str |
Processing stage name |
|
int |
Cells masked before any checks in this stage |
|
int |
Total cells in the dataset |
|
list[QCCheckStats] |
Ordered list of per-check statistics |
|
list[DataModificationStats] |
Data modification records |
|
float |
Percent valid after all checks in this stage |
|
float |
Additional masking caused by this stage |
|
dict |
JSON-serializable representation |
See Also
sensor_health —
get_statistics()andget_modifications()signal_quality —
get_statistics()profile_operation —
get_statistics()velocity_check —
get_statistics()andget_modifications()core —
ProcessedDataset.print_summary()