calix.hagen.neuron_dataclasses.NeuronCalibResult

class calix.hagen.neuron_dataclasses.NeuronCalibResult(target: Optional[CalibTarget], options: Optional[CalibOptions], neurons: Dict[pyhalco_hicann_dls_vx_v3.AtomicNeuronOnDLS, pylola_vx_v3.AtomicNeuron], cocos: {}, success: Dict[pyhalco_hicann_dls_vx_v3.AtomicNeuronOnDLS, bool])

Bases: calix.common.base.CalibResult

Result object of a neuron calibration. Holds calibrated parameters for all neurons and their calibration success.

__init__(target: Optional[CalibTarget], options: Optional[CalibOptions], neurons: Dict[pyhalco_hicann_dls_vx_v3.AtomicNeuronOnDLS, pylola_vx_v3.AtomicNeuron], cocos: {}, success: Dict[pyhalco_hicann_dls_vx_v3.AtomicNeuronOnDLS, bool])None

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(target, options, neurons, cocos, …)

Initialize self.

apply(builder)

Apply the calibration in the given builder.

Attributes

success_mask

Convert the success dict to a boolean numpy mask.

apply(builder: calix.common.base.WriteRecordingPlaybackProgramBuilder)

Apply the calibration in the given builder.

Configures neurons in a “default-working” state with calibration applied, just like after the calibration.

Parameters

builder – Builder or dumper to append configuration instructions to.

cocos: {}
neurons: Dict[pyhalco_hicann_dls_vx_v3.AtomicNeuronOnDLS, pylola_vx_v3.AtomicNeuron]
options: Optional[CalibOptions]
success: Dict[pyhalco_hicann_dls_vx_v3.AtomicNeuronOnDLS, bool]
property success_mask

Convert the success dict to a boolean numpy mask.

Returns

Numpy array containing neuron calibration success, ordered matching the AtomicNeuronOnDLS enum.

target: Optional[CalibTarget]