calix.hagen.neuron_helpers.CADCReadNeurons
-
class
calix.hagen.neuron_helpers.
CADCReadNeurons
Bases:
pystadls_vx_v3.PlaybackGenerator
Read CADC channels in both synrams, and return a Result object, which interprets the reads as neuron results. Note that the CADCs have to be connected to the neurons for this to make sense. After the builder has been run, the Result can be evaluated.
-
__init__
(self: pystadls_vx_v3.PlaybackGenerator) → None
Methods
generate
()Generate a builder with CADC read instructions for both synrams.
-
class
Result
(tickets: List[pystadls_vx_v3.ContainerTicket]) Bases:
object
Result object holding membrane potentials of all neurons.
- Variables
tickets – List of CADCSampleRow tickets containing the reads for top and bottom synram, respectively.
-
to_numpy
() → numpy.ndarray Return a numpy array containing CADC reads interpreted as neuron results. Note that the CADCs have to be connected to the neurons for this to make sense.
- Returns
Potential acquired from all neurons.
-
classmethod
generate
() → Tuple[calix.common.base.WriteRecordingPlaybackProgramBuilder, calix.hagen.neuron_helpers.CADCReadNeurons.Result] Generate a builder with CADC read instructions for both synrams.
- Returns
Tuple containing: * Builder containing the read instructions. * Result object that can be processed.
-