rabacus.utils package

Submodules

rabacus.utils.utils module

exception rabacus.utils.utils.NeedUnitsError(message)[source]

Bases: rabacus.utils.utils.Error

Exception raised for providing a quantity without units.

exception rabacus.utils.utils.InputError(message)[source]

Bases: rabacus.utils.utils.Error

Exception raised for bad function input.

rabacus.utils.utils.isiterable(obj)[source]

Returns True if the given object is iterable. Taken from the Astropy souce code.

rabacus.utils.utils.trap(x, y)[source]

Trapezoidal integration rule that preseves units.

rabacus.utils.utils.units_string(q)[source]

Module contents