Skip to content
Snippets Groups Projects
Commit 0e002db5 authored by Samuel GARNIER's avatar Samuel GARNIER
Browse files

Do not synchronize LBP if disabled in properties

* Also add debug message
parent afee39cd
No related branches found
No related tags found
No related merge requests found
......@@ -489,8 +489,17 @@ class DG_PY_FOFBTool(Device):
try:
self.debug_stream("Building list form FREE PROPERTIES")
bpmidlist = [(int(n.split(':')[0]), n.split(':')[2]) for n in db.get_property("FOFB", "bpmlist")['bpmlist'] if 'LIBERA' in n]
self.debug_stream("bpmid list {}".format(bpmidlist))
tlocal = [n.split(':')[2] for n in db.get_property("FOFB", 'TimingBoardList')['TimingBoardList'] if "LOCAL" in n]
self.debug_stream("tlocal list {}".format(tlocal))
if self.includeLBP:
lbpevrx = db.get_property("FOFB", 'LBPEVRX')['LBPEVRX']
self.debug_stream("lbpevrx list {}".format(lbpevrx))
else:
lbpevrx = []
self.debug_stream("lbpevrx list empty, includeLBP property disabled")
success=FofbTool.Operation.sync_bpm(bpmidlist, lbpevrx, tlocal, self.tangopath_centraltiming)
if success:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment