You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
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.
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 themaster
anddev
branch.It seems that the
TWCavityTM
was never updated to the newer convention as other elements.Error:
The text was updated successfully, but these errors were encountered: