Skip to main content

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

NameTypeRequiredDefaultSource 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'noNoneNot explicitly described in the source docstring.
unit'Unit | None'noNoneNot 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

NameTypeDefault
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

MemberKindSignatureDescription
to_dictmethod(self) -> 'Dict[str, Any]'See the member signature.
toleranceproperty-See the member signature.

Behavior and constraints

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

Import check

from cadflow import ToleranceAnalysis

See also