@@ -283,11 +283,11 @@ class BPMScalarAggregator(ScalarAggregator):
283283 """
284284
285285 def __init__ (self , ring :at .Lattice ):
286- self .__lattice = ring
287- self .__refpts = []
286+ self .lattice = ring
287+ self .refpts = []
288288
289289 def add_elem (self ,elem :at .Element ):
290- self .__refpts .append (self .__lattice .index (elem ))
290+ self .refpts .append (self .lattice .index (elem ))
291291
292292 def set (self , value : NDArray [np .float64 ]):
293293 pass
@@ -296,7 +296,7 @@ def set_and_wait(self, value: NDArray[np.float64]):
296296 pass
297297
298298 def get (self ) -> np .array :
299- _ , orbit = at .find_orbit (self .__lattice , refpts = self .__refpts )
299+ _ , orbit = at .find_orbit (self .lattice , refpts = self .refpts )
300300 return orbit [:, [0 , 2 ]].flatten ()
301301
302302 def readback (self ) -> np .array :
@@ -307,24 +307,24 @@ def unit(self) -> str:
307307
308308#------------------------------------------------------------------------------
309309
310- class BPMVScalarAggregator (BPMScalarAggregator ):
310+ class BPMHScalarAggregator (BPMScalarAggregator ):
311311 """
312312 Vertical BPM simulator aggregator
313313 """
314314
315315 def get (self ) -> np .array :
316- _ , orbit = at .find_orbit (self .__lattice , refpts = self .__refpts )
316+ _ , orbit = at .find_orbit (self .lattice , refpts = self .refpts )
317317 return orbit [:, 0 ]
318318
319319#------------------------------------------------------------------------------
320320
321- class BPMHScalarAggregator (BPMScalarAggregator ):
321+ class BPMVScalarAggregator (BPMScalarAggregator ):
322322 """
323323 Horizontal BPM simulator aggregator
324324 """
325325
326326 def get (self ) -> np .array :
327- _ , orbit = at .find_orbit (self .__lattice , refpts = self .__refpts )
327+ _ , orbit = at .find_orbit (self .lattice , refpts = self .refpts )
328328 return orbit [:, 2 ]
329329
330330#------------------------------------------------------------------------------
0 commit comments