accelmo.tracking.config.models¶
Configuration dataclasses for fitter initialization.
These dataclasses group related parameters to reduce the number of individual arguments passed to fitter constructors.
- class accelmo.tracking.config.models.MeasurementDetails(machine_state=None, b2_errors=None, machine_deltap=0.0, first_bpm=None)[source]¶
Bases:
objectPer-measurement model setup and momentum metadata.
machine_stateholds the model globals (tune knobs, corrector kicks, …) the machine had during this measurement;b2_errorsan LHC dipole b2 error table, which needs the tune knobs inmachine_state. The bunch structure is read from thebunch_numbercolumn of the measurement parquet, so it is not configured here.first_bpmnames the BPM each recorded turn begins at, used to cycle the measurement data to the boundary it was generated from. Leave itNoneto use the file’s own first recorded BPM; set it when that row order is unreliable (for example ACD marker rows written after the BPMs).- Parameters:
machine_state (MachineState | None)
b2_errors (Path | None)
machine_deltap (float)
first_bpm (str | None)
- machine_state: Mapping[str, float] | str | Path | None = None¶
- b2_errors: Path | None = None¶
- machine_deltap: float = 0.0¶
- first_bpm: str | None = None¶
- class accelmo.tracking.config.models.MeasurementConfig(measurements)[source]¶
Bases:
objectMaps each measurement file to its
MeasurementDetails.- Parameters:
measurements (dict[Path, MeasurementDetails])
- measurements: dict[Path, MeasurementDetails]¶
- property files: list[Path]¶
Return the measurement files in insertion order.
- property details: list[MeasurementDetails]¶
Return the per-file details in measurement-file order.
- class accelmo.tracking.config.models.CheckpointConfig(checkpoint_path, checkpoint_every_n_epochs=0, restore_from_checkpoint=False)[source]¶
Bases:
objectCheckpoint save/restore behaviour for optimisation runs.
- Parameters:
checkpoint_path (Path)
checkpoint_every_n_epochs (int)
restore_from_checkpoint (bool)
- checkpoint_path: Path¶
- checkpoint_every_n_epochs: int = 0¶
- restore_from_checkpoint: bool = False¶