Bender position calculation in xml2optr/optr2xml
Found an offset before and after bends in emma.xml when running the following command on hlx:
/home/cbarquest/acc/lib/xml2optr.py '/home/cbarquest/acc/isac/path/emma.xml' -E 79.3591 -q 7 -m 33533.80 -Q 0 -t '/home/cbarquest/acc/isac/tune/emma.xml' -o '/home/cbarquest/acc/lib/emmatest/'
The output I put for the first version in beam/envelope highlights the drift that I had to manually change for the generated xml2optr sy.f file to match the reference sy.f output:
Drifts before and after the bends were off by +/-26.18cm. Note the sequence emma.xml file was originally generated by optr2xml(I think?) so not sure if the position calculation is off in optr2xml or xml2optr.
Here are the relevant emma.xml path/sequence/tune files:
And here are the reference sy.f and data.dat files: