From e0847d65a5f3174cda50bf168d72016aa84d1f20 Mon Sep 17 00:00:00 2001 From: x07maop Date: Sat, 26 Nov 2016 07:41:30 +0100 Subject: [PATCH] Script execution --- script/jan/hyst_Tb_singleenergy-edge.py | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/script/jan/hyst_Tb_singleenergy-edge.py b/script/jan/hyst_Tb_singleenergy-edge.py index 8634b96..8173885 100644 --- a/script/jan/hyst_Tb_singleenergy-edge.py +++ b/script/jan/hyst_Tb_singleenergy-edge.py @@ -2,13 +2,7 @@ off_cplus = -6.0 off_cminus = -2.0 rrate = 2.0 # ramping speed of mag field -# normal incidence -#e1 = 1290.2 # energy 1 (usually on edge) -#e2 = 1283.0 # energy 2 (pre edge) - -# grazing incidence -e1 = 1235.6 # energy 1 (usually on edge) -#e2 = 1283.0 # energy 2 (pre edge) +e1 = 1235.6 # energy B1 = 4.0 # field span B2 = -B1 @@ -24,17 +18,17 @@ while loop_count < nr_loops: set_file('Tb_hyst_plus') hyst_cont(field_x, B1, B2, rrate, [e1]) - set_pol_cminus(offset = off_cminus) - set_file('Tb_hyst_minus') + set_pol_cplus(offset = off_cplus) + set_file('Tb_hyst_plus') hyst_cont(field_x, B2, B1, rrate, [e1]) - + set_pol_cminus(offset = off_cminus) set_file('Tb_hyst_minus') hyst_cont(field_x, B1, B2, rrate, [e1]) - set_pol_cplus(offset = off_cplus) - set_file('Tb_hyst_plus') - hyst_cont(field_x, B2, B1, rrate, [e1]) + set_pol_cminus(offset = off_cminus) + set_file('Tb_hyst_minus') + hyst_cont(field_x, B2, B1, rrate, [e1]) loop_count = loop_count + 1 print "Loop # ",loop_count," finished."