Skip to main content

ToleranceGraph

Kind: Class
Domain: Expressions, units, and tolerances
Canonical import: from cadflow import ToleranceGraph

Signature

class ToleranceGraph(expression_graph: 'ExpressionGraph') -> 'None'

Description

Tolerance requirements attached to one expression graph.

Parameters

NameTypeRequiredDefaultSource description
expression_graph'ExpressionGraph'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.

Public members

MemberKindSignatureDescription
from_dictclass method(cls, data: 'Mapping[str, Any]', expression_graph: 'ExpressionGraph') -> "'ToleranceGraph'"See the member signature.
requiremethod(self, value: 'ScalarLike', tolerance: 'ToleranceLike', *, method: 'ToleranceMethod' = 'worst_case', name: 'str | None' = None, requirement_id: 'str | None' = None, tolerance_unit: 'UnitLike | None' = None) -> 'ToleranceRequirement'Declare a target tolerance and register its expression dependencies.
requirement_countproperty-See the member signature.
requirementsproperty-See the member signature.
to_dictmethod(self) -> 'Dict[str, Any]'See the member signature.
validatemethod(self, *, raise_on_failure: 'bool' = False) -> 'ToleranceReport'See the member signature.

Behavior and constraints

  • The contract below is generated from the current public runtime signature. Check domain notes for ownership and workflow constraints.

Import check

from cadflow import ToleranceGraph

See also