brainmodels.synapses.Synapse

class brainmodels.synapses.Synapse(pre, post, conn, method='exp_auto', build_integral=True, **kwargs)[source]
__init__(pre, post, conn, method='exp_auto', build_integral=True, **kwargs)[source]

Methods

__init__(pre, post, conn[, method, ...])

check_post_attrs(*attrs)

Check whether post group satisfies the requirement.

check_pre_attrs(*attrs)

Check whether pre group satisfies the requirement.

child_ds([method, include_self])

Return the children instance of dynamical systems.

derivative(*args, **kwargs)

ints([method])

Collect all integrators in this node and the children nodes.

load_states(filename[, verbose, check_missing])

Load the model states.

nodes([method, _paths])

Collect all children nodes.

register_constant_delay(key, size, delay[, ...])

Register a constant delay, whose update method will be appended into the self.steps in this host class.

register_implicit_nodes(nodes)

register_implicit_vars(variables)

save_states(filename[, all_vars])

Save the model states.

train_vars([method])

The shortcut for retrieving all trainable variables.

unique_name([name, type_])

Get the unique name for this object.

update(*args, **kwargs)

The function to specify the updating rule.

vars([method])

Collect all variables in this node and the children nodes.