27 lines
598 B
Python
27 lines
598 B
Python
from datetime import datetime
|
|
from time import sleep, time
|
|
import numpy as np
|
|
#from epics import PV
|
|
#from slic.utils import nice_arange
|
|
#from slic.devices.general.motor import Motor
|
|
|
|
|
|
|
|
# parameters
|
|
n_same_holes = 5
|
|
attenuations = np.logspace(1e-6,1,num=12)
|
|
|
|
def shoot():
|
|
raise NotImplementedError("not done yet")
|
|
|
|
def change_benders(bender_1,bender_2,KB = None):
|
|
check_KB_value(KB)
|
|
|
|
def check_KB_value(KB):
|
|
if KB not in ['H','h','V','v']:
|
|
raise KeyError(f"KB can only be horizontal (H) or vertical (V), not {KB}")
|
|
|
|
def get_bender_value(KB=None):
|
|
check_KB_value(KB)
|
|
|