Macros
assert_additive_identity
Validates that an additive identity holds: total = sum(components) + residual ± tolerance
Validates that an additive identity holds: total = sum(components) + residual ± tolerance
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Validates that an additive identity holds: total = sum(components) + residual ± tolerance
{{ assert_additive_identity(model_ref, total_col, component_cols, residual_col, tolerance=0.0001) }}
| Argument | Description |
|---|---|
model_ref | ref() to the model to validate |
total_col | name of the total column (e.g., ‘pace_delta_s’) |
component_cols | list of component column names (e.g., [‘fuel_component_s’, ‘compound_component_s’, …]) |
residual_col | name of the residual closure column (e.g., ‘driver_skill_residual_s’) |
tolerance | allowable deviation in the same units as total_col (default 0.0001 s) |