From 513d4a16f083ed07e06d80f376821bac202e3e01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20BRON=C3=88S?= <romain.brones@synchrotron-soleil.fr> Date: Mon, 24 Jun 2024 15:43:41 +0200 Subject: [PATCH] feat(sync): Remove totaly FofbManager * The properties were copied to a DB property * tested on the RCM --- FofbTool/Operation.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/FofbTool/Operation.py b/FofbTool/Operation.py index 922588a..cdf292f 100644 --- a/FofbTool/Operation.py +++ b/FofbTool/Operation.py @@ -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') -- GitLab