Skip to main content

model

Pydantic record for the cst_calculation cache table (v1).

Classes

CSTCalculationRecord

class CSTCalculationRecord(**data: Any):

Record of a single row from the cst_calculation table.

metrics_json holds the CST/CRT metrics for a successful calculation and is None when the metric could not be computed for the file. error carries the reason in that case (missing_data:<fields> when the datasource had no metadata row for the file, calculation_error:<detail> when the maths raised); exactly one of metrics_json and error is populated for a row.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Variables

  • static error : str | None
  • static file_id : str
  • static metrics_json : dict[str, typing.Any] | None
  • static model_config
  • static project_id : str | None
  • static run_id : str | None
  • static task_hash : str