accelmo.poco.workers.calibrated¶
Closed-orbit worker with BPM gain and corrector calibration parameters (see accelmo.poco.calibration).
- class accelmo.poco.workers.calibrated.CalibratedClosedOrbitWorker(conn, worker_id, data, config, runtime)[source]¶
Bases:
ClosedOrbitWorkerWorker that fits
(1 + b_bpm) * model(q, kicks * (1 + g_corrector))to the measured orbit changes.Every calibrated corrector that is on (a non-zero
<kick_prefix><corrector>global) in either the series’ state or its reference state has its whole kick scaled by its gain, in both states.Assumes the baseline lattice has no enabled correctors: a kick that is non-zero only in the baseline (not set by either state) gets no gain knob and is never scaled.
The knob dict it receives carries the gains next to the magnet knobs (names from
accelmo.poco.calibration); the engine never sees them. Its reply carries the blocks’ header (sizes and chi²) inextra, followed on the pipe by the blocks’ arrays.- Parameters:
conn (Connection)
worker_id (int)
data (WorkerDataType)
config (ConfigType)
runtime (WorkerRuntime)
- on_start(knobs)[source]¶
Start the engine and count the magnet knobs.
- Return type:
None- Parameters:
knobs (dict[str, float])