check_scales

menpofit.checks.check_scales(scales)[source]

Checks that the provided scales argument is either int or float or an iterable of those. It makes sure that it returns a list of scales.

Parameters

scales (int or float or list/tuple of those) – The value to check.

Returns

scales (list of int or float) – The scales in a list.

Raises

ValueError – scales must be an int/float or a list/tuple of int/float