Skip to content

TWCavity not working #268

Description

@cr-xu

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'

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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