brian2tools.nmlutils.utils module

brian2tools.nmlutils.utils.from_string(rep)[source]

Returns Quantity object from text representation of a value.

Parameters:

rep (str) – text representation of a value with unit

Returns:

q – Brian Quantity object

Return type:

Quantity

brian2tools.nmlutils.utils.string_to_quantity(rep)[source]

Returns Quantity object from text representation of a value.

Parameters:

rep (str) – text representation of a value with unit

Returns:

q – Brian Quantity object

Return type:

Quantity