Skip to content

A suggestion on mad_parser.py and a problem with using 'FINT' and 'HGAP' #83

@LiarGC

Description

@LiarGC

Firstly, I found that readMad() could not get correct lattice from my Madx lattice file, resulting from mistaking lines like "Q01:QUADRUPOLE,L=1.0,K1:=kQD1;", which should be "elements" type, as "variables" type in _init_string(). To solve this issue, I added some code into mad_parser.py in the ZIP file**GC_changes.zip**.

Secondly, I found that the 'FINT' and 'HGAP', refering to the difference between fringe fields of horizontal and vertical directions in dipoles, could be used in Madx, but could not be used in py-orbit. Again, I added some code into teapot.py in the ZIP file and accidently get correct TWISS. However, I am not sure wether my code really works, because it changes parameters in 'TPB.wedgerotate()', where I do not know what the code means. So could you please check my changes, and help me with the issue of using 'FINT' and 'HGAP'?

All changes could be found by searching for 'GC'. If my code is useful, you are free to add them into your github.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions