unit_factor_from_annotation

torch_sim.units.unit_factor_from_annotation(hint)[source]

Return a unit factor from an annotation, including optional annotations.

Parameters:

hint (object)

Return type:

float | None