Skip to main content

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

NameTypeRequiredDefaultSource 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

NameTypeDefault
lower_deviation'float'required
upper_deviation'float'required

Public members

MemberKindSignatureDescription
from_dictclass method(cls, data: 'Mapping[str, Any]') -> "'DimensionTolerance'"See the member signature.
symmetricclass method(cls, deviation: 'int | float') -> "'DimensionTolerance'"Create a symmetric +/- deviation tolerance.
to_dictmethod(self) -> 'Dict[str, float]'See the member signature.
widthproperty-See the member signature.

Behavior and constraints

  • Instances are immutable dataclass values; update workflows return a replacement value.

Import check

from cadflow import DimensionTolerance

See also