A bug in &save_lattice?

Moderators: michael_borland, soliday

Post Reply
yhidaka
Posts: 2
Joined: 08 Feb 2024, 15:14

A bug in &save_lattice?

Post by yhidaka » 13 Feb 2024, 14:12

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`.
Attachments
after_alter.lte
(597 Bytes) Downloaded 170 times
before_alter.lte
(708 Bytes) Downloaded 173 times
alter.ele
(498 Bytes) Downloaded 156 times

michael_borland
Posts: 1959
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: A bug in &save_lattice?

Post by michael_borland » 15 Feb 2024, 17:38

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

yhidaka
Posts: 2
Joined: 08 Feb 2024, 15:14

Re: A bug in &save_lattice?

Post by yhidaka » 16 Feb 2024, 09:32

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!

Post Reply