Recorder

Contents

Recorder#

class brainpy.state.network.Recorder(*args, **kwargs)#

Forward a source-population signal to a passive NESTDevice each step.

Parameters:
  • source (Dynamics) – Module to read from.

  • attr (str or callable) –

    • If str: attribute name on source whose .value is read (e.g. 'V').

    • If callable: invoked as attr(source) each step. Useful for quantities that aren’t persisted as a State — e.g. spikes: attr=lambda s: s.get_spike(s.V.value).

  • device (NESTDevice) – Recording device with a compatible update signature (e.g. spike_recorder, multimeter).