Skip to content
Snippets Groups Projects
Commit 513d4a16 authored by BRONES Romain's avatar BRONES Romain
Browse files

feat(sync): Remove totaly FofbManager

* The properties were copied to a DB property
* tested on the RCM
parent 32909f15
No related branches found
No related tags found
No related merge requests found
......@@ -510,14 +510,13 @@ def sync_all_bpm():
"""
EVN=240 # Event number
# Get FofbManager proxy, only for its properties
p = tango.DeviceProxy(FofbTool.Configuration.config["tangopath"]["fofb-manager"])
db = tango.Database()
bpmlist = [n.split(':')[2] for n in p.get_property("bpmlist")['bpmlist']]
bpmidlist = [(int(n.split(':')[0]), n.split(':')[2]) for n in p.get_property("bpmlist")['bpmlist'] if 'LIBERA' in n]
bpmlist = [n.split(':')[2] for n in db.get_property("FOFB", "bpmlist")['bpmlist']]
bpmidlist = [(int(n.split(':')[0]), n.split(':')[2]) for n in db.get_property("FOFB", "bpmlist")['bpmlist'] if 'LIBERA' in n]
tlocal = tango.Group('tlocal')
tlocal.add([n.split(':')[2] for n in p.get_property('TimingBoardList')['TimingBoardList'] if "LOCAL" in n])
tlocal.add([n.split(':')[2] for n in db.get_property("FOFB", 'TimingBoardList')['TimingBoardList'] if "LOCAL" in n])
# Set a group of Libera Brillance Plus EVRX board, from FofbTool configuration
lbpevrx = tango.Group('lbpevrx')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment