Resetter class

(Shortest import: from brian2.groups.neurongroup import Resetter)

class brian2.groups.neurongroup.Resetter(*args, **kw)[source]

Bases: CodeRunner

The CodeRunner that applies the reset statement(s) to the state variables of neurons that have spiked in this timestep.

Methods

update_abstract_code(run_namespace)

Update the abstract code for the code object.

Details

update_abstract_code(run_namespace)[source]

Update the abstract code for the code object. Will be called in before_run and should update the CodeRunner.abstract_code attribute.

Does nothing by default.