Skip to content

Add support to LOCO fitting with ID's local quads and skew quads - #193

Draft
vellosok75 wants to merge 3 commits into
masterfrom
loco-script-adaptations
Draft

Add support to LOCO fitting with ID's local quads and skew quads#193
vellosok75 wants to merge 3 commits into
masterfrom
loco-script-adaptations

Conversation

@vellosok75

@vellosok75 vellosok75 commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Allows carrying out fitting with ID's local quads and skew quads by introducing the --id-name argument (ID famname in pymodels). Also introduces the --filename-init-fit arg, which loads the data from a previous LOCO fit, and starts optimization from that point, with frozen gains and rolls.

Depends on lnls-fac/apsuite#324

I'll add usage instructions and the tests I carried out as soon as I can.

… previous LOCO fit

- allows selection of quadrupoles families for performing the fit: currently the fitting does not seem to be working, under investigation (find orbit error during new parameters evaluation within the LOCO loop)
- allows starting point of the fitting to be performed from an initial LOCO fit
- new  arg `id-name` forces fit to be carried out with quad magnets adjacent to the corresponding ID, as well as the ID's skew quads
- if using a previous fitted model, will not fit gains and couplings
- when starting from a previous loco fitted model, the tunes will not match measured ones (same old tune problem)
- if tune is corrected, quadrupole changes associated with this correction may be difficult to isolate from the actual changes needed to fit the data starting fom the previous fit model
- the new arg allows to bypass the tune correction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants