pcdsdevices.targets.StageStack

pcdsdevices.targets.StageStack(mdict, name)

Conveniencefunction for generating a stage stack device. Intended for bundling various motors into a single object. The function takes a dictionary of PVs and/or previously instantiated motor objects and bundles them together. If given a PV, The factory function attempts to determine the appropriate motor class from the given base PV; if this fails then it will attempt to create an EpicsMotor. Axes are given the same name as they are assigned in the provided dictionary. See examples below.

Parameters:
  • mdict (dictionary) – Dictionary of motor objects and or base PVs.

  • name (str) – Name for the stack. Used to make a class name. No whitespace.

Examples

# Make a classic XYZ stack with two PVs and one motor object d = {‘x’: ‘TST:MMS:01’, ‘y’: ‘TST:MMS:02’, ‘z’: z_motor} xyz = StageStack(d, ‘my_xyz’)