Skip to content
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

Issue when matching chromatic functions in a non-periodic lattice #465

Open
chanceant opened this issue Feb 22, 2024 · 2 comments
Open

Issue when matching chromatic functions in a non-periodic lattice #465

chanceant opened this issue Feb 22, 2024 · 2 comments

Comments

@chanceant
Copy link

Dear all,

I am doing some tests of the matching of the chromatic functions in an insertion line.
If I use a periodic cell (like an arc cell), the matching of second-order dispersion works well.
However, if I use a non-periodic lattice, there are 2 issues.

In the documentation, that is not written that you have to add the flag "use_chromatic_functions = True" in the match (or twiss) functions. That would be nice to add it in the preambule of the match and twiss functions.

When I put this flag True, I can have the second-order dispersion calculated but the matching becomes very slow.
Indeed, at each function call, Xsuite compiles again the line, which makes the matching very slow.
Is there any way to ask not to do that? Xsuite does not do that for matching lattice functions or in a periodic lattice.

Thank you in advance,
I am sure that I have missed something.

@giadarol
Copy link
Member

Can you run in a shell (outside python) with your conda environment activated:

xsuite-prebuild

This should avoid you the compilation. Let me know if it doesn't work.

Also, thanks for the tip about the documentation. Very appreciated!

@chanceant
Copy link
Author

With xsuite-prebuild, it worked nicely.
Thank you a lot for the quick answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants