calix.hagen.neuron_potentials.LeakPotentialCalib
-
class
calix.hagen.neuron_potentials.
LeakPotentialCalib
(target: Optional[Union[int, numpy.ndarray]] = None) Bases:
calix.common.base.Calib
Calibrate the neurons’ leak potentials to match specified CADC reads.
The leak potential parameter is varied until all CADC channels match the median of the original reads or the provided target values.
Requirements: * Neuron membrane readout is connected to the CADCs (causal and acausal). * Leak bias current is set not too low, such that the resting potential
is affected by the leak potential. Note that this calibration has to be re-run after the leak bias current was changed, due to the OTA’s characteristics.
-
__init__
(target: Optional[Union[int, numpy.ndarray]] = None) Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
([target])Initialize self.
configure_parameters
(builder, parameters)Configure the given parameters (leak potential settings) in the given builder.
measure_results
(connection, builder)Measures the membrane potentials of all neurons.
postlude
(connection)Print statistics of the neurons’ resting potentials.
prelude
(connection)If no calibration target was provided during initialization, the current median resting potential is measured and used as a target.
-
configure_parameters
(builder: calix.common.base.WriteRecordingPlaybackProgramBuilder, parameters: numpy.ndarray) → calix.common.base.WriteRecordingPlaybackProgramBuilder Configure the given parameters (leak potential settings) in the given builder.
- Parameters
builder – Builder to append configuration instructions to.
parameters – v_leak setting for each neuron.
- Returns
Builder with configuration appended.
-
measure_results
(connection: pyhxcomm_vx.ConnectionHandle, builder: calix.common.base.WriteRecordingPlaybackProgramBuilder) → numpy.ndarray Measures the membrane potentials of all neurons.
We use the CADCs to take only one measurement of the resting potential and assume this is an accurate representation of the leak potential.
- Parameters
connection – Connection to a chip.
builder – Builder to append read instructions to.
- Returns
Array containing membrane potential CADC reads.
-
postlude
(connection: pyhxcomm_vx.ConnectionHandle) → None Print statistics of the neurons’ resting potentials.
- Param connection
Connection to the chip to run on.
-
prelude
(connection: pyhxcomm_vx.ConnectionHandle) → None If no calibration target was provided during initialization, the current median resting potential is measured and used as a target.
- Parameters
connection – Connection to the chip to run on.
-