跳到主要内容

check_tolerance

类型: 函数
领域: 表达式、单位与公差
推荐导入: from cadflow import check_tolerance

签名

def check_tolerance(value: 'ScalarLike', tolerance: 'ToleranceLike', *, method: 'ToleranceMethod' = 'worst_case', name: 'str | None' = None, tolerance_unit: 'UnitLike | None' = None) -> 'ToleranceCheck'

功能说明

check_tolerance 是 CadFlow 表达式、单位与公差领域的公共函数。

原始 API 说明

Propagate and verify one Length or Angle requirement.

tolerance_unit defaults to the target dimension's canonical unit. When provided, it must be dimensionally compatible and is converted before the comparison. Legacy unitless requirements remain supported when no unit is supplied.

参数

名称类型必需默认值源码说明
value'ScalarLike'-源码 Docstring 未单独说明。
tolerance'ToleranceLike'-源码 Docstring 未单独说明。
method'ToleranceMethod''worst_case'源码 Docstring 未单独说明。
name'str | None'None源码 Docstring 未单独说明。
tolerance_unit'UnitLike | None'None源码 Docstring 未单独说明。

返回值

类型: 'ToleranceCheck'

源码 Docstring 未声明更多返回语义。

异常

源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。

行为与约束

  • 以下契约由当前公共运行时签名生成;所有权与工作流限制见对应领域说明。

导入检查

from cadflow import check_tolerance

相关内容