@@ -54,23 +54,30 @@ def set_aggregator(self, agg: DeviceAccessList):
5454class BPMArray (ElementArray ):
5555 """
5656 Class that implements access to a BPM array
57+
58+ Parameters
59+ ----------
60+ arrayName : str
61+ Array name
62+ bpms: list[BPM]
63+ BPM list, all elements must be attached to the same instance of
64+ either a Simulator or a ControlSystem.
65+ use_aggregator : bool
66+ Use aggregator to increase performance by using paralell
67+ access to underlying devices.
68+
69+ Example
70+ -------
71+
72+ An array can be retrieved from the configuration as in the following example::
73+
74+ sr = Accelerator.load("acc.yaml")
75+ bpms = sr.design.get_bpms("BPMs")
76+
77+
5778 """
5879
5980 def __init__ (self , arrayName : str , bpms : list [BPM ], use_aggregator = True ):
60- """
61- Construct a BPM array
62-
63- Parameters
64- ----------
65- arrayName : str
66- Array name
67- bpms: list[BPM]
68- BPM list, all elements must be attached to the same instance of
69- either a Simulator or a ControlSystem.
70- use_aggregator : bool
71- Use aggregator to increase performance by using paralell
72- access to underlying devices.
73- """
7481 super ().__init__ (arrayName , bpms , use_aggregator )
7582
7683 self .__hvpos = RWBPMPosition (arrayName , bpms )
@@ -86,20 +93,20 @@ def __init__(self, arrayName: str, bpms: list[BPM], use_aggregator=True):
8693 @property
8794 def positions (self ) -> RWBPMPosition :
8895 """
89- Give access to bpm posttions of each bpm of this array
96+ Returns position of each bpm of this array
9097 """
9198 return self .__hvpos
9299
93100 @property
94101 def h (self ) -> RWBPMSinglePosition :
95102 """
96- Give access to bpm H posttions of each bpm of this array
103+ Returns horizontal position of each bpm of this array
97104 """
98105 return self .__hpos
99106
100107 @property
101108 def v (self ) -> RWBPMSinglePosition :
102109 """
103- Give access to bpm V posttions of each bpm of this array
110+ Returns vertical position of each bpm of this array
104111 """
105112 return self .__vpos
0 commit comments