Skip to content

Commit

Permalink
Merge pull request #910 from lnls-sirius/fix-killbeam
Browse files Browse the repository at this point in the history
Fix KillBeam and SOFB
  • Loading branch information
anacso17 authored Feb 13, 2023
2 parents 7debfb5 + 9fcc1b1 commit 17a958f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion siriuspy/siriuspy/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.67.0
2.67.1
2 changes: 1 addition & 1 deletion siriuspy/siriuspy/devices/rf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ def set_frequency(self, value, timeout=10, tol=0.05):

class RFKillBeam(ASLLRF):
"""RF Kill Beam Button."""
TIMEOUT_WAIT = 5.0 # [s]
TIMEOUT_WAIT = 20.0 # [s]
INCRATE_VALUE = ASLLRF.VoltIncRates.vel_50p0 # [mV/s]
REFMIN_VALUE = 60 # Minimum Amplitude Reference [mV]

Expand Down
2 changes: 2 additions & 0 deletions siriuspy/siriuspy/sofb/bpms.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def __init__(self, name, callback=None):
self._polyx = _PV(pvpref + 'GEN_PolyXArrayCoeff-RB', **opt)
self._polyy = _PV(pvpref + 'GEN_PolyYArrayCoeff-RB', **opt)
opt['callback'] = self._set_needs_update
opt['auto_monitor'] = True
self._arraya = _PV(pvpref + 'GEN_AArrayData', **opt)
self._arrayb = _PV(pvpref + 'GEN_BArrayData', **opt)
self._arrayc = _PV(pvpref + 'GEN_CArrayData', **opt)
Expand All @@ -39,6 +40,7 @@ def __init__(self, name, callback=None):
self._arrayy = _PV(pvpref + 'GEN_YArrayData', **opt)
self._arrays = _PV(pvpref + 'GEN_SUMArrayData', **opt)
opt.pop('callback')
opt.pop('auto_monitor')
self._offsetx = _PV(pvpref + 'PosXOffset-RB', **opt)
self._offsety = _PV(pvpref + 'PosYOffset-RB', **opt)
self._config_ok_vals = {
Expand Down
12 changes: 6 additions & 6 deletions siriuspy/siriuspy/sofb/orbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,9 +845,9 @@ def _update_multiturn_orbits(self):
bpm.mtposy, self.ref_orbs['Y'][i], samp)
psum = self._get_pos(bpm.mtsum, 0, samp)
else:
posx = self.raw_mtorbs['X'][-1].copy()
posy = self.raw_mtorbs['Y'][-1].copy()
psum = self.raw_mtorbs['Sum'][-1].copy()
posx = self.raw_mtorbs['X'][-1][:, i].copy()
posy = self.raw_mtorbs['Y'][-1][:, i].copy()
psum = self.raw_mtorbs['Sum'][-1][:, i].copy()
orbs['X'].append(posx)
orbs['Y'].append(posy)
orbs['Sum'].append(psum)
Expand Down Expand Up @@ -920,9 +920,9 @@ def _update_singlepass_orbits(self):
'refy': self.ref_orbs['Y'][i]})
orbx, orby, summ = bpm.calc_sp_multiturn_pos(**dic)
else:
orbx = self.raw_sporbs['X'][-1].copy()
orby = self.raw_sporbs['Y'][-1].copy()
summ = self.raw_sporbs['Sum'][-1].copy()
orbx = self.raw_sporbs['X'][-1][:, i].copy()
orby = self.raw_sporbs['Y'][-1][:, i].copy()
summ = self.raw_sporbs['Sum'][-1][:, i].copy()
orbs['X'].append(orbx)
orbs['Y'].append(orby)
orbs['Sum'].append(summ)
Expand Down

0 comments on commit 17a958f

Please sign in to comment.