xtrack icon indicating copy to clipboard operation
xtrack copied to clipboard

Implement the IBS kicks configuration API from Line

Open fsoubelet opened this issue 9 months ago • 0 comments

Description

REQUIRES https://github.com/xsuite/xfields/pull/116

This adds a simple method to the xtrack.Line configure the IBS kick element (and potentially also install it first, if provided). It mimicks the API introduced in xfields.ibs and passes itself as the line, while transmitting all other parameters.

Users would need to upgrade xfields to version >=0.17.0 to use this.

Checklist

Mandatory:

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

Optional:

  • [x] 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

fsoubelet avatar May 14 '24 11:05 fsoubelet