calix.hagen.neuron_potentials.BaselineCalib
-
class
calix.hagen.neuron_potentials.
BaselineCalib
Bases:
calix.common.cadc.ChannelOffsetCalib
Calibrate all CADC channels offsets such that the neurons read a given value shortly after reset.
Requirements: * Neuron membrane readout is connected to the CADCs (causal and acausal). * The potential shortly after a neuron reset is stable and does not
quickly drift away. Also, it has to be in a suitable range for the CADCs, ideally near the middle of their dynamic range.
-
__init__
() Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
()Initialize self.
measure_results
(connection, builder)Read all CADC channels at the neuron’s baseline voltage.
postlude
(connection)Print statistics about the CADC reads before and after calibration.
prelude
(connection)Configure debug readout cell to roughly the middle of the desired dynamic CADC range.
-
measure_results
(connection: pyhxcomm_vx.ConnectionHandle, builder: calix.common.base.WriteRecordingPlaybackProgramBuilder) → numpy.ndarray Read all CADC channels at the neuron’s baseline voltage. This read is executed multiple times to get a more accurate result.
- Parameters
connection – Connection to the chip to run on.
builder – Builder to append read instructions to.
- Returns
Array of read values for both synrams.
-
postlude
(connection: pyhxcomm_vx.ConnectionHandle) Print statistics about the CADC reads before and after calibration. Data after calibration is measured using the connection.
- Parameters
connection – Connection to the chip to run on.
-
prelude
(connection: pyhxcomm_vx.ConnectionHandle) Configure debug readout cell to roughly the middle of the desired dynamic CADC range. Measure the target read to aim for when calculating the offsets.
- Parameters
connection – Connection to the chip to calibrate.
-