pynn_brainscales.brainscales2.recording.Recorder

class pynn_brainscales.brainscales2.recording.Recorder(population, file=None)

Bases: pyNN.recording.Recorder

__init__(population, file=None)

Create a recorder.

population – the Population instance which is being recorded by the

recorder

file – one of:
  • a file-name,

  • None (write to a temporary file)

  • False (write to memory).

Methods

__init__(population[, file])

Create a recorder.

add_recording(segment, snippet_idx, variable)

Add the recorded samples to the segment.

add_spike_trains(segment, snippet_idx, *[, …])

Add the recorded spike trains to the segment.

filter_recorded(variable, filter_ids)

get(variables[, gather, filter_ids, clear, …])

Return the recorded data as a Neo Block.

record(variables, ids[, sampling_interval, …])

Add the cells in ids to the sets of recorded cells for the given variables.

Attributes

add_recording(segment: neo.core.segment.Segment, snippet_idx: int, variable: str, device: str = 'madc', *, filter_ids=None, clear: bool = True)None

Add the recorded samples to the segment.

Parameters
  • segment – Segment to which add the data.

  • snippet_idx – Snipped for from which to get the samples.

  • variable – Name of variable for which to get the data.

  • device – Device for which get the samples. I.e. CADC or MADC.

  • filter_ids – Ids of cells for which to get the data. If None, the samples of all cells are retrieved.

  • clear – Clear recorded data.

add_spike_trains(segment: neo.core.segment.Segment, snippet_idx: int, *, filter_ids=None, clear: bool = True)None

Add the recorded spike trains to the segment.

Parameters
  • segment – Segment to which to add the spike trains.

  • snippet_idx – Snipped for from which to get the spike trains.

  • filter_ids – Ids of cells for which to get the spike trains. If None, the spike trains of all cells are retrieved.

  • clear – Clear recorded data.

filter_recorded(variable, filter_ids)
get(variables, gather=False, filter_ids=None, clear=False, annotations=None, locations=None)

Return the recorded data as a Neo Block.

record(variables, ids, sampling_interval=None, locations=None, *, device='madc')

Add the cells in ids to the sets of recorded cells for the given variables.