Skip to content

W function start value is ignored for transfer lines in pyat #1061

@oscarxblanco

Description

@oscarxblanco

Dear all,
I want to see the effect of a transfer line on the chromatic amplitude and phase, however, when I try to set the start value of the W functions to zero it is ignored and calculated from the input twiss.

>>> tw_in_w_set_to_zero['W']
array([[0., 0.]])
>>> _,_,tw_out = my_transfer_line.linopt6(refpts=0,get_w=True,twiss_in=tw_in_w_set_to_zero[0])
>>> tw_out['W']
array([[12.91922806,  1.36202752]]) # I expected this to be zero

Metadata

Metadata

Assignees

No one assigned

    Labels

    PythonFor python AT codebug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions