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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
FOFB
FofbTool
Commits
d8dfb591
Commit
d8dfb591
authored
Jun 17, 2024
by
BRONES Romain
Browse files
Options
Downloads
Patches
Plain Diff
Add sync option to command line
parent
29032d7b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
FofbTool/Operation.py
+0
-2
0 additions, 2 deletions
FofbTool/Operation.py
scripts/FofbTool
+6
-1
6 additions, 1 deletion
scripts/FofbTool
with
6 additions
and
3 deletions
FofbTool/Operation.py
+
0
−
2
View file @
d8dfb591
...
@@ -515,8 +515,6 @@ def sync_all_bpm():
...
@@ -515,8 +515,6 @@ def sync_all_bpm():
lbpevrx
=
tango
.
Group
(
'
lbpevrx
'
)
lbpevrx
=
tango
.
Group
(
'
lbpevrx
'
)
lbpevrx
.
add
(
FofbTool
.
Configuration
.
config
[
"
tangopath
"
][
"
lbpevrx
"
].
split
())
lbpevrx
.
add
(
FofbTool
.
Configuration
.
config
[
"
tangopath
"
][
"
lbpevrx
"
].
split
())
tcentral
=
tango
.
DeviceProxy
(
FofbTool
.
Configuration
.
config
[
"
tangopath
"
][
"
timing-central
"
])
# ---------------------------------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------
# Step 1 : Init BPMs
# Step 1 : Init BPMs
logger
.
info
(
"
Configure Libera Electron with FofbManager
"
)
logger
.
info
(
"
Configure Libera Electron with FofbManager
"
)
...
...
This diff is collapsed.
Click to expand it.
scripts/FofbTool
+
6
−
1
View file @
d8dfb591
...
@@ -16,6 +16,7 @@ if __name__ == '__main__':
...
@@ -16,6 +16,7 @@ if __name__ == '__main__':
# Safer import: add the parent dir in path
# Safer import: add the parent dir in path
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
..
'
)))
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
..
'
)))
import
FofbTool.Utils
import
FofbTool.Utils
import
FofbTool.Operation
import
FofbTool.Configuration
# Still needs for one function, TODO
import
FofbTool.Configuration
# Still needs for one function, TODO
...
@@ -74,6 +75,8 @@ if __name__ == '__main__':
...
@@ -74,6 +75,8 @@ if __name__ == '__main__':
parser
.
add_argument
(
"
--start-ccn
"
,
action
=
"
store_true
"
,
parser
.
add_argument
(
"
--start-ccn
"
,
action
=
"
store_true
"
,
help
=
"
Start command for the ComBPM applications blocks.
"
)
help
=
"
Start command for the ComBPM applications blocks.
"
)
parser
.
add_argument
(
"
--sync
"
,
action
=
"
store_true
"
,
help
=
"
Start synchronization sequence for Libera Electron and Libera Brillance Plus.
"
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
...
@@ -123,6 +126,9 @@ if __name__ == '__main__':
...
@@ -123,6 +126,9 @@ if __name__ == '__main__':
if
args
.
configure
in
(
"
corr
"
,
"
all
"
):
if
args
.
configure
in
(
"
corr
"
,
"
all
"
):
FofbTool
.
Configuration
.
centralnode_configure_corr
()
FofbTool
.
Configuration
.
centralnode_configure_corr
()
if
args
.
sync
:
FofbTool
.
Operation
.
sync_all_bpm
()
if
args
.
start
or
args
.
start_comlbp
:
if
args
.
start
or
args
.
start_comlbp
:
FofbTool
.
Utils
.
start_all_comlbp
()
FofbTool
.
Utils
.
start_all_comlbp
()
if
args
.
start
or
args
.
start_combpm
:
if
args
.
start
or
args
.
start_combpm
:
...
@@ -132,4 +138,3 @@ if __name__ == '__main__':
...
@@ -132,4 +138,3 @@ if __name__ == '__main__':
if
not
args
.
align_fa
is
None
:
if
not
args
.
align_fa
is
None
:
FofbTool
.
Utils
.
align_all_ccn
(
args
.
align_fa
,
force
=
args
.
force
)
FofbTool
.
Utils
.
align_all_ccn
(
args
.
align_fa
,
force
=
args
.
force
)
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