id4_common.devices.kb_generic#

Generic KB mirror device factory with configurable motor PV suffixes.

Module Contents#

id4_common.devices.kb_generic.make_kb_class(v_motors: dict, h_motors: dict) type#

Return a KBDevice class with specified motor PV suffixes.

Parameters:
  • v_motors (dict) – Mapping of vertical motor attribute names to PV suffixes, e.g. {"ds_piezo": "m4", "us_piezo": "m5", ...}.

  • h_motors (dict) – Mapping of horizontal motor attribute names to PV suffixes.

Returns:

A KBDevice class composed of Vertical and Horizontal sub-devices.

Return type:

type

id4_common.devices.kb_generic.GKBDevice#
id4_common.devices.kb_generic.HKBDevice#