Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PythonControl
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
PA
Operation
PythonControl
Commits
22c5703b
Commit
22c5703b
authored
2 months ago
by
Alexis GAMELIN
Browse files
Options
Downloads
Patches
Plain Diff
Fix import oustide of control room
parent
853ef0c0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
chro.py
+7
-8
7 additions, 8 deletions
chro.py
with
7 additions
and
8 deletions
chro.py
+
7
−
8
View file @
22c5703b
...
...
@@ -12,14 +12,6 @@ from time import sleep
from
tango
import
DeviceProxy
from
scipy.optimize
import
curve_fit
#%% Init
tuneX
=
DeviceProxy
(
"
ans/rf/bbfdataviewer.1-tunex
"
)
tuneZ
=
DeviceProxy
(
"
ans/rf/bbfdataviewer.2-tunez
"
)
RF
=
DeviceProxy
(
'
ANS/RF/MasterClock
'
)
service_locker
=
DeviceProxy
(
"
ANS/CA/SERVICE-LOCKER-MATLAB
"
)
fofb_watcher
=
DeviceProxy
(
"
ANS/DG/FOFB-WATCHER
"
)
#%% chroma measurement
def
chroma_measurement
(
N_step_delta
=
5
,
...
...
@@ -56,6 +48,13 @@ def chroma_measurement(N_step_delta=5,
Vertical tune measured.
"""
# Init devices
tuneX
=
DeviceProxy
(
"
ans/rf/bbfdataviewer.1-tunex
"
)
tuneZ
=
DeviceProxy
(
"
ans/rf/bbfdataviewer.2-tunez
"
)
RF
=
DeviceProxy
(
'
ANS/RF/MasterClock
'
)
service_locker
=
DeviceProxy
(
"
ANS/CA/SERVICE-LOCKER-MATLAB
"
)
fofb_watcher
=
DeviceProxy
(
"
ANS/DG/FOFB-WATCHER
"
)
# Parameters
alphac
=
4.1819e-04
sleep_time_RF_change
=
5
# second
...
...
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