Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
FofbTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
FOFB
FofbTool
Commits
c73b107b
Commit
c73b107b
authored
7 months ago
by
BRONES Romain
Browse files
Options
Downloads
Patches
Plain Diff
Fix Operation sync argument
* Use only one list of tuple (BPMID, BPMPATH )
parent
4bbe1340
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
FofbTool/Operation.py
+4
-5
4 additions, 5 deletions
FofbTool/Operation.py
FofbTool/Utils.py
+1
-2
1 addition, 2 deletions
FofbTool/Utils.py
with
5 additions
and
7 deletions
FofbTool/Operation.py
+
4
−
5
View file @
c73b107b
...
...
@@ -556,17 +556,15 @@ def electron_stop_com(bpmlist):
# OPERATIONS FOR LBP and Electron SYNCHRONIZATION
###################################################################################################
def
sync_bpm
(
bpmlist
,
bpmidlist
,
lbpevrx
,
tlocal
,
tcentral
):
def
sync_bpm
(
bpmidlist
,
lbpevrx
,
tlocal
,
tcentral
):
"""
Synchronize all BPM electronics, Electron and Brillance Plus.
This will use the timing system (central and local board).
PARAMETERS:
-----------
bpmlist: list
list of Libera Electron tango path
bpmidlist: list
list of ID to put on Libera Electron
bpmidlist: list of tupme
list of tuple (ID, tangopath) to put on Libera Electron
lbpevrx: list
list of LBP Evrx tanfo path
tlocal: list
...
...
@@ -576,6 +574,7 @@ def sync_bpm(bpmlist, bpmidlist, lbpevrx, tlocal, tcentral):
"""
EVN
=
240
# Event number
bpmlist
=
[
b
[
1
]
for
b
in
bpmidlist
]
# ---------------------------------------------------------------------------------------------------------------
# Init BPMs, stop first and put for each the ID number
...
...
This diff is collapsed.
Click to expand it.
FofbTool/Utils.py
+
1
−
2
View file @
c73b107b
...
...
@@ -460,7 +460,6 @@ def sync_all_bpm():
db
=
tango
.
Database
()
bpmlist
=
[
n
.
split
(
'
:
'
)[
2
]
for
n
in
db
.
get_property
(
"
FOFB
"
,
"
bpmlist
"
)[
'
bpmlist
'
]
if
"
:LIBERA:
"
in
n
]
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
'
)
...
...
@@ -472,5 +471,5 @@ def sync_all_bpm():
tcentral
=
tango
.
DeviceProxy
(
config
[
"
tangopath
"
][
"
timing-central
"
])
FofbTool
.
Operation
.
sync_bpm
(
bpmlist
,
bpmidlist
,
lbpevrx
,
tlocal
,
tcentral
)
FofbTool
.
Operation
.
sync_bpm
(
bpmidlist
,
lbpevrx
,
tlocal
,
tcentral
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment