Skip to contents

Check if a unit is valid for a given dimension using ospsuite units. Throws an error if the unit is invalid.

Usage

validate_unit(unit, dimension)

Arguments

unit

Unit to validate

dimension

Dimension the unit should belong to

Value

TRUE if valid, throws an error if invalid