started inprints script
This commit is contained in:
26
measurement_scripts/inprints.py
Normal file
26
measurement_scripts/inprints.py
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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)
|
||||||
|
|
Reference in New Issue
Block a user