is_dimensionless function

(Shortest import: from brian2 import is_dimensionless)

brian2.units.fundamentalunits.is_dimensionless(obj)[source]

Test if a value is dimensionless or not.

Parameters:

obj : object

The object to check.

Returns:

dimensionless : bool

True if obj is dimensionless.