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

Improve error message in matching #672

Open
lcarver opened this issue Oct 16, 2023 · 0 comments
Open

Improve error message in matching #672

lcarver opened this issue Oct 16, 2023 · 0 comments
Labels
Python For python AT code

Comments

@lcarver
Copy link
Contributor

lcarver commented Oct 16, 2023

If you are trying to match in transfer line mode and you add a linopt constraint for the tune, it is very possible that your machine is not stable. In this case, the optics constraints evaluate nicely, but then for the tune you get a NaN and you get the following error

ValueError: Residuals are not finite in the initial point.

This could probably be caught and a more helpful error message given.

@lcarver lcarver added the Python For python AT code label Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Python For python AT code
Projects
None yet
Development

No branches or pull requests

1 participant