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

BugFix: normalization by 0 in get_timelag_fromU0 #758

Merged
merged 4 commits into from
Apr 29, 2024
Merged

Conversation

swhite2401
Copy link
Contributor

This PR is a follow-up of #757
For multiple RF systems the synchronous phase is solved numerically. The system was normalized to U0 to prevent tolerance issues for the search of the stable point in the the presence of large energy loss per turn.
This normalization resulted in issue in get_timelag_fromU0 (called by findorbit6 and fastring) in the presence of multiple RF systems when radiations are off.
This issue is resolve by applying the normalization only when U0>0.

@swhite2401 swhite2401 requested a review from lfarv April 24, 2024 11:16
@swhite2401
Copy link
Contributor Author

@lfarv, the macos-latest runs on the M1 chip and does not support python version < 3.10. Also matlab does not run on arm64 architecture.

For the tests to complete I have changed the runner config such that macos-13 is used for python <3.10 and for the matlab tests
Is this ok for you?

Copy link
Contributor

@lfarv lfarv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@swhite2401:
I could not find documentation about the changes GitHub made on macOS runners…
Anyway your solution looks good.

@swhite2401 swhite2401 merged commit b016b77 into master Apr 29, 2024
37 checks passed
@swhite2401 swhite2401 deleted the timelagfromu0 branch August 13, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Python For python AT code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants