Skip to content

TWCavity not working #268

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

Open
cr-xu opened this issue Jan 15, 2025 · 1 comment
Open

TWCavity not working #268

cr-xu opened this issue Jan 15, 2025 · 1 comment

Comments

@cr-xu
Copy link
Contributor

cr-xu commented Jan 15, 2025

There is an error when trying to create a TWCavity object simply by calling e.g. cavity=ocelot.TWCavity(l=0.1). This is still the case in the master and dev branch.

It seems that the TWCavityTM was never updated to the newer convention as other elements.

Error:

File ".../ocelot/ocelot/cpbd/transformations/transformation.py", line 108, in create
    return cls(create_tm_param_func=tm_params_func, delta_e_func=delta_e_func, tm_type=tm_type, length=length, delta_length=delta_length, **params)
TypeError: TWCavityTM.__init__() got an unexpected keyword argument 'create_tm_param_func'
@sergey-tomin
Copy link
Collaborator

Hi,

This element is not operational yet. I haven’t had the time to reimplement it, and since we use standing wave cavities, its priority has been lower.

Another reason for the delay is that I had hoped we could use a single cavity transfer map for both types of cavities. However, it seems the situation is a bit more complicated than initially anticipated.

Cheers,
Sergey.

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

No branches or pull requests

2 participants