step.calibration.store ====================== .. py:module:: step.calibration.store .. autoapi-nested-parse:: YAML-backed calibration store. Persists arbitrary calibration data to ``racoon.calibration.yml`` alongside the C++ CalibrationStore (which owns the ``ir-calibration`` section). Each section/set pair maps to a flat dict of values:: root: range-finder: first_pipe: t_enter: 1200.0 t_exit: 800.0 drum-collector: default: blocked: 3200.0 pocket: 900.0 Attributes ---------- .. autoapisummary:: step.calibration.store.CALIBRATION_FILE Classes ------- .. autoapisummary:: step.calibration.store.CalibrationStore Module Contents --------------- .. py:data:: CALIBRATION_FILE :value: 'racoon.calibration.yml' .. py:class:: CalibrationStore(path: pathlib.Path | None = None) Read and write named calibration sections in the calibration YAML. .. py:method:: load(section: str, set_name: str = 'default') -> dict | None Load a calibration dict, or *None* if nothing is stored. .. py:method:: store(section: str, data: dict, set_name: str = 'default') -> None Persist a calibration dict (merges with existing file). .. py:method:: has_data(section: str, set_name: str = 'default') -> bool Check whether calibration data exists for the given section/set.