calix.common.base.CalibResult
-
class
calix.common.base.
CalibResult
(target: Optional[calix.common.base.CalibTarget], options: Optional[calix.common.base.CalibOptions]) Bases:
abc.ABC
Data structure for higher-level calibration results, that combine multiple parameters into a logal unit.
Used as base type for hagen and spiking calibration results.
- Variables
-
__init__
(target: Optional[calix.common.base.CalibTarget], options: Optional[calix.common.base.CalibOptions]) → None Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(target, options)Initialize self.
apply
(builder)Apply the saved calib result to the chip.
to_chip
([initial_config, chip])Apply the calibration into a lola.chip object.
-
abstract
apply
(builder: Union[pystadls_vx_v3.PlaybackProgramBuilder, pystadls_vx_v3.PlaybackProgramBuilderDumper]) Apply the saved calib result to the chip.
This function should work with either a builder or a dumper.
- Parameters
builder – Builder or dumper to append instructions to.
-
options
: Optional[calix.common.base.CalibOptions]
-
target
: Optional[calix.common.base.CalibTarget]
-
to_chip
(initial_config: Optional[pystadls_vx_v3.PlaybackProgramBuilderDumper] = None, chip: Optional[pylola_vx_v3.Chip] = None) → pylola_vx_v3.Chip Apply the calibration into a lola.chip object.
- Parameters
initial_config – Optional dumper filled with configuration instructions that have been run before creating the calibration.
chip – Chip object to merge the calibration into. Defaults to a default-constructed lola.Chip().
- Returns
Chip object with calibration applied.