# Thresholder class¶

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

class brian2.groups.neurongroup.Thresholder(group, when='thresholds', event='spike')[source]

The CodeRunner that applies the threshold condition to the state variables of a NeuronGroup at every timestep and sets its spikes and refractory_until attributes.

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.