Skip to content
Snippets Groups Projects
Commit 22c5703b authored by Alexis GAMELIN's avatar Alexis GAMELIN
Browse files

Fix import oustide of control room

parent 853ef0c0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment