pcdsdevices.mps.mps_factory

pcdsdevices.mps.mps_factory(clsname, cls, *args, mps_prefix, veto=False, **kwargs)

Create a new object of arbitrary class capable of storing MPS information.

A new class identical to the provided one is created, but with additional attribute mps that relies upon the provided .mps_prefix. All other information is passed through to the class constructor as args and kwargs

Parameters:
  • clsname (str) – Name of new class to create.

  • cls (type) – Device class to add mps.

  • mps_prefix (str) – Prefix for MPS subcomponent.

  • veto (bool, optional) – Whether the MPS bit is capable of veto.

  • args – Passed to device constructor.

  • kwargs – Passed to device constructor.