Skip to content

Conversation

@szymonlopaciuk
Copy link
Contributor

@szymonlopaciuk szymonlopaciuk commented Nov 7, 2025

Don't Merge Yet – only to be released with Xtrack 0.95.0

Description

As a result of removing "special values" for _sin_rot_s to enable/disable transformations (instead we simply store angles, shifts, and zero values mean disabled) the API for transformations was simplified. However, I noticed that Xcoll was using one of the functions I deleted in one place, so I have reintroduced it as a proper method of the BaseElement, which requires the following change.

Checklist

Mandatory:

  • I have added tests to cover my changes
  • All the tests are passing, including my new ones
  • I described my changes in this PR description

Optional:

  • The code I wrote follows good style practices (see PEP 8 and PEP 20).
  • I have updated the docs in relation to my changes, if applicable
  • I have tested also GPU contexts

@szymonlopaciuk szymonlopaciuk marked this pull request as ready for review November 10, 2025 13:57
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

Successfully merging this pull request may close these issues.

1 participant