calix.calib_cache

Classes

Path(*args, **kwargs)

PurePath subclass that can make system calls.

Functions

calix.calib_cache.calibrate(target: calix.common.base.TopLevelCalibTarget, options: Optional[calix.common.base.CalibOptions] = None, cache_paths: Optional[List[pathlib.Path]] = None, cache_read_only: Optional[bool] = False, connection: Optional = None)calix.common.base.CalibResult

Calibrate chip with cache functionality. Calibration function is deduced from target and options type. If cache_paths is not empty, searches for cached calibration result with same parameters in list order. If no cache is found executes calibration and caches in fist path with write access.

Parameters
  • target – Target values for calibration.

  • options – Options for calibration.

  • cache_paths – List of possible cache locations. If list is empty, caching is skipped. If None defaults are used. Defaults are read-only shared wang cache path followed by user home cache.

  • cache_read_only – Only read cache file, do not create cache file if one does not exist.

Returns

Calibration result

calix.calib_cache.sha256(string=b'')

Returns a sha256 hash object; optionally initialized with a string