Skip to content

twiss attach2elem bug with duplicate element instances #288

Description

@st-walker

If you have repeated element instances in a sequence, when you do twiss(..., attach2elem=True), the twiss attached to that element is at the last point in the sequence.

So if you have the sequence (d_1, q_1, d_1, q_1, d_1), and then want to get the twiss at end of the first element by using attach2elem=True, then you will actually get the twiss at the end of the sequence altogether, which would be a surprise/wrong. This should somehow be dealt with properly, or warned when it happens, or whatever.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions