ToleranceAnalysis
Kind: Class
Domain: Expressions, units, and tolerances
Canonical import: from cadflow import ToleranceAnalysis
Signature
class ToleranceAnalysis(target_expr_id: 'str', method: 'ToleranceMethod', nominal: 'float', lower_bound: 'float', upper_bound: 'float', lower_deviation: 'float', upper_deviation: 'float', dimension: 'Dimension | None' = None, unit: 'Unit | None' = None, contributions: 'Tuple[ToleranceContribution, ...]' = ()) -> None
Description
Nominal value and propagated limits for an expression.
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
target_expr_id | 'str' | yes | - | Not explicitly described in the source docstring. |
method | 'ToleranceMethod' | yes | - | Not explicitly described in the source docstring. |
nominal | 'float' | yes | - | Not explicitly described in the source docstring. |
lower_bound | 'float' | yes | - | Not explicitly described in the source docstring. |
upper_bound | 'float' | 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. |
dimension | 'Dimension | None' | no | None | Not explicitly described in the source docstring. |
unit | 'Unit | None' | no | None | Not explicitly described in the source docstring. |
contributions | 'Tuple[ToleranceContribution, ...]' | no | () | 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 |
|---|---|---|
target_expr_id | 'str' | required |
method | 'ToleranceMethod' | required |
nominal | 'float' | required |
lower_bound | 'float' | required |
upper_bound | 'float' | required |
lower_deviation | 'float' | required |
upper_deviation | 'float' | required |
dimension | 'Dimension | None' | None |
unit | 'Unit | None' | None |
contributions | 'Tuple[ToleranceContribution, ...]' | () |
Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
to_dict | method | (self) -> 'Dict[str, Any]' | See the member signature. |
tolerance | property | - | See the member signature. |
Behavior and constraints
- Instances are immutable dataclass values; update workflows return a replacement value.
Import check
from cadflow import ToleranceAnalysis