Script execution
This commit is contained in:
+6
-6
@@ -1,10 +1,10 @@
|
||||
#Parameters
|
||||
|
||||
B1 = 1.8 # starting mag. field in Amps
|
||||
B2 = -1.8 # final mag. field in Amps
|
||||
BSTEP = 0.2 # step size mag. field in Amps
|
||||
B1 = 0.5 # starting mag. field in Amps
|
||||
B2 = -0.5 # final mag. field in Amps
|
||||
BSTEP = 0.5 # step size mag. field in Amps
|
||||
ENERGIES = (707.90, 703.90) #list of energies in eV
|
||||
MODE = "CIRC +" #polarization (CIRC+ or CIRC-)
|
||||
MODE = 1 #polarization (CIRC+ -> 1 or CIRC- -> 2)
|
||||
OFFSET1 = -10 #ID1 offset
|
||||
OFFSET2 = -15 #ID2 offset
|
||||
FIELD_PRECISION = 0.05 # in Amps
|
||||
@@ -20,8 +20,8 @@ RANGES = [(B1, B2, -BSTEP),(B2,B1,BSTEP)]
|
||||
#Pre-actions
|
||||
# Here polarization and offsets are set
|
||||
|
||||
if MODE is ["CIRC +", "CIRC -"]:
|
||||
caput(OTF_MODE1,MODE)
|
||||
if MODE is 1 or 2:
|
||||
# caput(OTF_MODE1,MODE)
|
||||
caput(OTF_MODE2,MODE)
|
||||
else:
|
||||
raise Exception("Invalid polarization type: " + MODE)
|
||||
|
||||
Reference in New Issue
Block a user