This commit is contained in:
2018-08-24 12:07:28 +02:00
parent 3e41debde1
commit c6cd6123b0
22 changed files with 1010 additions and 132 deletions

View File

@@ -1,19 +1,20 @@
en.move(20.0)
delta.config.maxSpeed = 50.0
delta.speed = 50.0
energy.move(20.0)
delta.move(1.0)
run("diffcalc/diffutils")
###################################################################################################\
#Setup
###################################################################################################
setup_diff(sixc, en)
setup_diff(sixc, energy)
# Set some limits
setup_axis('gam', 0, 179)
setup_axis('delta', 0, 179)
setup_axis('delta', min=0)
setup_axis('phi', cut=-180.0)
setup_axis(gamma, 0, 179)
setup_axis(delta, 0, 179)
setup_axis(delta, min=0)
setup_axis(phi, cut=-180.0)
print_axis_setup()
@@ -59,13 +60,15 @@ print angles_to_hkl((0., 60., 0., 30., 0., 0.))
print hkl_to_angles(1, 0, 0)
sixc.write([0, 60, 0, 30, 90, 0])
print "sixc=" , sixc.position
wl.write(1.0)
print "wl = ", wl.read()
wavelength.write(1.0)
print "wavelength = ", wavelength.read()
"""
ub.lastub()
ub.setu ([[1, 0, 0], [0, 1, 0], [0, 0, 1]])
ub.showref()
ub.swapref(1,2)
"""
#print you.hkl
#pos(get_hkl())