Page 1 of 1

A bug in &save_lattice?

Posted: 13 Feb 2024, 14:12
by yhidaka
If I run the attached ELE file, which changes the values of `N_KICKS` for KQUAD, KSEXT and UKICKMAP elements via `&alter_elements`, then the newly created LTE file `after_alter.lte` (also attached) no longer contains `SYSTEMATIC_MULTIPOLES` for KQUAD & KSEXT.

Could this be related to one of the bugs listed in the ELEGANT manual section 13.33.2?

By the way, UKICKMAP does preserve the string property `INPUT_FILE`.

Re: A bug in &save_lattice?

Posted: 15 Feb 2024, 17:38
by michael_borland
The problem is a typo in the definition of the quadrupoles. You have a spurious quotation mark at the end of the lines containing FSE values. This confuses the parser and it ignores the rest of the element definition.

--Michael

Re: A bug in &save_lattice?

Posted: 16 Feb 2024, 09:32
by yhidaka
Oh, that was a dumb mistake on my part. The original LTE file is auto-generated by a script in a series of manipulations, and the quote characters appear to be somehow inserted along the way. I'll investigate my code. Thank you very much!