ToleranceContribution
Kind: Class
Domain: Expressions, units, and tolerances
Canonical import: from cadflow import ToleranceContribution
Signature
class ToleranceContribution(variable_expr_id: 'str', variable_name: 'str', nominal: 'float', source_tolerance: 'DimensionTolerance', sensitivity: 'float | None', lower_deviation: 'float', upper_deviation: 'float', source_unit: 'Unit | None' = None) -> None
Description
One source dimension's propagated contribution to a result.
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
variable_expr_id | 'str' | yes | - | Not explicitly described in the source docstring. |
variable_name | 'str' | yes | - | Not explicitly described in the source docstring. |
nominal | 'float' | yes | - | Not explicitly described in the source docstring. |
source_tolerance | 'DimensionTolerance' | yes | - | Not explicitly described in the source docstring. |
sensitivity | 'float | None' | yes | - | Not explicitly described in the source docstring. |
lower_deviation | 'float' | yes | - | Not explicitly described in the source docstring. |
upper_deviation | 'float' | yes | - | Not explicitly described in the source docstring. |
source_unit | 'Unit | None' | no | None | Not explicitly described in the source docstring. |
Returns
Type: None
The source docstring does not declare additional return semantics.
Errors
The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.
Data fields
| Name | Type | Default |
|---|---|---|
variable_expr_id | 'str' | required |
variable_name | 'str' | required |
nominal | 'float' | required |
source_tolerance | 'DimensionTolerance' | required |
sensitivity | 'float | None' | required |
lower_deviation | 'float' | required |
upper_deviation | 'float' | required |
source_unit | 'Unit | None' | None |
Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
to_dict | method | (self) -> 'Dict[str, Any]' | See the member signature. |
Behavior and constraints
- Instances are immutable dataclass values; update workflows return a replacement value.
Import check
from cadflow import ToleranceContribution