-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix problems with transfer line mode #342
Conversation
Dear @lfarv and @swhite2401, thank you for this fix! It works when using atlinopt6. if I keep my script unmodified and use atlinopt, it gives this error. when I block the script at that line here is the size of the orbitin variable: in case this is an intended feature, then I would suggest modifying the help of atlinopt as well, for example triggering an error when computing transfer line optics, saying, please use atlinopt6, and giving ad example of "conversion" I also noted a 10* in the code for the vertical emittance (line 260 of linear.py). This is may be dangerous? I think about my lattices with errors, would I get all time 10 times larger vertical emittance? |
@simoneliuzzo : You are still running |
Hi Laurent, I tried to add an atradoff line, but the message is still the same, dimensions not ok. atplot transferline mode is working only with 6D-radiation-on-atlinopt6 optics? What about transferlines? where can I try the test that you mention? There is a branch for it probably. Indeed this radiation-atlinopt-atlinopt6 combos are rather hard to get to my simple user mind, I never get the correct combination! thank you! best regards |
@simoneliuzzo: Concerning your last sentence, you are basically right: it's usually better now to use But keep in mind that dispersion and β-functions are 2D notions. Even if Concerning transfer lines:
|
Dear Laurent, |
No problem, these numbers are arbitrary. The sum of R-matrices is necessary to extract the Eigen vectors. The arbitrary "emittance" get out as Eigen values, which are ignored. |
I do not get this error. Am I missing something? |
Now, with radiation OFF, the |
You must be in a wrong branch: neither |
You are right Laurent! the branch is correct, actually the whole path is different. This is an ESRF based issue (computing cluster home not equal to the standard site user home). sorry for spamming. This branch works also for me, both with atlinopt and atlinopt6. |
I have not looked at the python version |
The transfer-line mode of
linopt*
has some problems:Both are fixed in this pull request.