Skip to main content

infer_dimension

Kind: Function
Domain: Expressions, units, and tolerances
Canonical import: from cadflow import infer_dimension

Signature

def infer_dimension(value: "'ScalarLike'") -> 'Dimension | None'

Description

Infer and validate an expression's result dimension.

Infer and validate an expression's result dimension.

None means the expression uses only legacy variables without unit declarations. Expressions that contain explicit units are validated strictly and cannot mix in legacy variables.

Parameters

NameTypeRequiredDefaultSource description
value"'ScalarLike'"yes-Not explicitly described in the source docstring.

Returns

Type: 'Dimension | 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.

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 infer_dimension

See also