@@ -173,12 +173,12 @@ class BPMScalarAggregator(ScalarAggregator):
173173 BPM simulator aggregator
174174 """
175175
176- def __init__ (self , ring : at .Lattice ):
177- self .__lattice = ring
178- self .__refpts = []
176+ def __init__ (self , ring :at .Lattice ):
177+ self .lattice = ring
178+ self .refpts = []
179179
180- def add_elem (self , elem : at .Element ):
181- self .__refpts .append (self .__lattice .index (elem ))
180+ def add_elem (self ,elem :at .Element ):
181+ self .refpts .append (self .lattice .index (elem ))
182182
183183 def set (self , value : NDArray [np .float64 ]):
184184 pass
@@ -187,7 +187,7 @@ def set_and_wait(self, value: NDArray[np.float64]):
187187 pass
188188
189189 def get (self ) -> np .array :
190- _ , orbit = at .find_orbit (self .__lattice , refpts = self .__refpts )
190+ _ , orbit = at .find_orbit (self .lattice , refpts = self .refpts )
191191 return orbit [:, [0 , 2 ]].flatten ()
192192
193193 def readback (self ) -> np .array :
@@ -200,26 +200,26 @@ def unit(self) -> str:
200200# ------------------------------------------------------------------------------
201201
202202
203- class BPMVScalarAggregator (BPMScalarAggregator ):
203+ class BPMHScalarAggregator (BPMScalarAggregator ):
204204 """
205205 Vertical BPM simulator aggregator
206206 """
207207
208208 def get (self ) -> np .array :
209- _ , orbit = at .find_orbit (self .__lattice , refpts = self .__refpts )
209+ _ , orbit = at .find_orbit (self .lattice , refpts = self .refpts )
210210 return orbit [:, 0 ]
211211
212212
213213# ------------------------------------------------------------------------------
214214
215215
216- class BPMHScalarAggregator (BPMScalarAggregator ):
216+ class BPMVScalarAggregator (BPMScalarAggregator ):
217217 """
218218 Horizontal BPM simulator aggregator
219219 """
220220
221221 def get (self ) -> np .array :
222- _ , orbit = at .find_orbit (self .__lattice , refpts = self .__refpts )
222+ _ , orbit = at .find_orbit (self .lattice , refpts = self .refpts )
223223 return orbit [:, 2 ]
224224
225225
0 commit comments