is_extensive

erwans3.utils.is_extensive(unit: Optional[Union[Quantity, UnitBase]]) bool

Check whether a given unit is extensive (per steradian) or not.

Parameters:

unit (Quantity or UnitBase or None) – The unit to check.

Returns:

True if the unit is extensive, False otherwise.

Return type:

bool