accelmo.tracking.config.helpers¶
Helper functions for creating fitter configurations.
This module provides convenience functions to reduce duplication when creating fitter configuration objects for common use cases.
- accelmo.tracking.config.helpers.single_measurement_config(measurement_file, machine_deltap=0.0, machine_state=None, first_bpm=None, b2_errors=None)[source]¶
Build a single-file MeasurementConfig.
Convenience for the common one-measurement case. Multi-file runs build the
{path: MeasurementDetails(...)}mapping directly. The bunch structure is read from the parquet’sbunch_numbercolumn, so it is not configured here.first_bpmnames the BPM the recorded turns begin at; leave itNoneto use the file’s own first recorded BPM.b2_errorsoptionally applies an LHC dipole b2 error table during optimisation (requiresmachine_state, holding the tune knobs).- Return type:
- Parameters:
measurement_file (Path)
machine_deltap (float)
machine_state (Mapping[str, float] | Path | None)
first_bpm (str | None)
b2_errors (Path | None)