DimensionTolerance
Kind: Class
Domain: Expressions, units, and tolerances
Canonical import: from cadflow import DimensionTolerance
Signature
class DimensionTolerance(lower_deviation: 'float', upper_deviation: 'float') -> None
Description
Permitted lower and upper deviations from a nominal dimension.
Permitted lower and upper deviations from a nominal dimension.
Deviations are signed: the lower deviation must be less than or equal to zero and the upper deviation must be greater than or equal to zero.
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
lower_deviation | 'float' | yes | - | Not explicitly described in the source docstring. |
upper_deviation | 'float' | yes | - | 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 |
|---|---|---|
lower_deviation | 'float' | required |
upper_deviation | 'float' | required |
Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
from_dict | class method | (cls, data: 'Mapping[str, Any]') -> "'DimensionTolerance'" | See the member signature. |
symmetric | class method | (cls, deviation: 'int | float') -> "'DimensionTolerance'" | Create a symmetric +/- deviation tolerance. |
to_dict | method | (self) -> 'Dict[str, float]' | See the member signature. |
width | property | - | See the member signature. |
Behavior and constraints
- Instances are immutable dataclass values; update workflows return a replacement value.
Import check
from cadflow import DimensionTolerance