braincore.util module

braincore.util module#

unique_name([name, self])

Get the unique name for this object.

clear_buffer_memory([platform, array, ...])

Clear all on-device buffers.

not_instance_eval(*cls)

Create a partial function to evaluate if the input is not an instance of the given class.

is_instance_eval(*cls)

Create a partial function to evaluate if the input is an instance of the given class.

DictManager

DictManager, for collecting all pytree used in the program.

MemScaling(scale, bias)

The scaling object for membrane potential.

IdMemScaling()

The identity scaling object.

DotDict(*args, **kwargs)

Python dictionaries with advanced dot notation access.