hxtorch.spiking.utils.calib_helper

Helpers to handle calibrations

Classes

Path(*args, **kwargs)

PurePath subclass that can make system calls.

Functions

hxtorch.spiking.utils.calib_helper.calib_from_calix_native(path: Union[str, pathlib.Path])dict

Extract chip config from calix-native pickle dump

Parameters

path – path to file containing pickled calix result and target.

hxtorch.spiking.utils.calib_helper.chip_from_file(path: str)dict

Extract chip config from coco file dump

Parameters

path – path to file containing coco dump.

hxtorch.spiking.utils.calib_helper.chip_from_portable_binary(data: bytes)dict

Convert portable binary data to chip object.

Parameters

data – Coco list in portable binary format.

Returns

lola chip configuration.

hxtorch.spiking.utils.calib_helper.nightly_calib_path(name: str = 'spiking')pathlib.Path

Find path for nightly calibration.

hxtorch.spiking.utils.calib_helper.nightly_calix_native_path(name: str = 'spiking')pathlib.Path

Find path for nightly calibration of calix-native format

Parameters

name – calibration name prefix.

hxtorch.spiking.utils.calib_helper.target_from_calix_native(path: Union[str, pathlib.Path])dict

Extract target dict from calix-native pickle dump

Parameters

path – path to file containing pickled calix result and target.