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'
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 themasteranddevbranch.It seems that the
TWCavityTMwas never updated to the newer convention as other elements.Error: