is_scalar

pyirf.utils.is_scalar(val)[source]

Workaround that also supports astropy quantities

Parameters:
valobject

Any object (value, list, etc…)

Returns:
result: bool

True is if input object is a scalar, False otherwise.