From 97cd7cdde775b74bd00743978daa6a12b0f5e1e7 Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Wed, 31 Oct 2018 16:21:20 +0100 Subject: [PATCH] Script execution --- script/daq/daq1-setup.py | 112 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 script/daq/daq1-setup.py diff --git a/script/daq/daq1-setup.py b/script/daq/daq1-setup.py new file mode 100644 index 0000000..57bcb89 --- /dev/null +++ b/script/daq/daq1-setup.py @@ -0,0 +1,112 @@ +###################################################################################################\ +#Geometry +################################################################################################### + + +###################################################################################################\ +#Orientation +################################################################################################### + +""" + # H K L ov alp del gam nu dev'n + - - - - --- --- --- --- --- ----- + 1 0.0000 1.0000 2.0000 93.1159 9.7280 9.7490 19.5860 0.0000 + 0.0000 1.0000 2.0000 93.1295 9.7212 9.7488 19.5860 0.0000 0.0000 +------------------------------------------------ + 2 2.0000 2.0000 2.0000 57.7252 9.6050 27.7006 20.9322 0.0000 + 2.0000 2.0000 2.0000 57.5840 9.8097 27.7194 20.9065 0.0000 0.0000 +------------------------------------------------ + 3 2.0000 0.0000 2.0000 8.6687 9.6023 19.4996 20.2618 0.0000 + 2.0000 0.0000 2.0000 8.4510 9.8217 19.5132 20.2488 0.0000 0.0000 +------------------------------------------------ + +Orientation Matrix by Row: + +Row 1: 0.81374 0.02138 0.00228 +Row 2: -0.02199 0.81543 0.00123 +Row 3: 0.00784 -0.00100 0.81347 + +1874.X04V> wh + +H K L = 2 0 2 +BetaIn = 9.8218 BetaOut = 9.8218 +Lambda = 1.305 + + omegaV alpha delta gamma nu + 8.6687 9.6022 19.4996 20.2617 0.0000 + +""" + +#help(ub.ub) +#ub.listub() + +ub.newub('test') +ub.setub([[ 0.81374, 0.02138, 0.00228], [-0.02199, 0.81543, 0.00123], [ 0.00784, -0.00100, 0.81347]]) + + +""" +ub.setlat('cubic', 7.723, 7.707, 7.723, 90.0, 89.265, 90.0) +en = 9.5 +#ub.addref([0, 0, 2], [9.78, 9.749, 19.586, 93.1159], en) +#"mu", "delta", "gam", "eta" +ub.addref([0, 1, 2], [9.7280, 9.7490, 19.5860, 93.1159], en) +ub.addref([2, 2, 2], [9.6050, 27.7006, 20.9322 , 57.7252], en) +ub.addref([2, 0, 2], [9.6023 , 19.4996, 20.2618 , 8.6687], en) +""" +#ub.ub() +#ub.trialub() +#ub.calcub() +ub.checkub() + +###################################################################################################\ +#Constraints +################################################################################################### +hkl.con('a_eq_b') +print hkl_to_angles(0, 1, 2) +print hkl_to_angles(2, 2, 2) +print hkl_to_angles(2, 0, 2) + + + + + + +""" +ub.newub('test') +ub.setlat('cubic', 7.723, 7.707, 7.723, 90.0, 89.265, 90.0) +en = 9.5 +#ub.addref([0, 0, 2], [9.78, 9.749, 19.586, 93.1159], en) +#"mu", "delta", "gam", "eta" +ub.addref([0, 1, 2], [9.7280, 9.7490, 19.5860, 93.1159], en) +ub.addref([2, 2, 2], [9.6050, 27.7006, 20.9322 , 57.7252], en) +ub.addref([2, 0, 2], [9.6023 , 19.4996, 20.2618 , 8.6687], en) +ub.ub() +ub.checkub() + +hkl.con('a_eq_b') +print hkl_to_angles(0, 1, 2) +print hkl_to_angles(2, 2, 2) +print hkl_to_angles(2, 0, 2) +""" + + +ub.listub() + + +ub.newub('test') +ub.setlat('cubic', 1.305, 1.305, 1.305, 90, 90, 90) +en = 9.5 +ub.addref([0, 0, 1], [30.0, 0.0, 60.0, 0.0], en) +ub.addref([1, 0, 1], [20.0, 45.5564,90.000, 44.4437], en) + + +ub.ub() +ub.checkub() +hkl.con('a_eq_b') +print hkl_to_angles(0, 1, 2) +print hkl_to_angles(2, 2, 2) +print hkl_to_angles(2, 0, 2) + + + +