From 387835d7ed254ff1f388b986ef4889f489372e05 Mon Sep 17 00:00:00 2001 From: gac-x09lb Date: Wed, 23 Nov 2022 09:14:42 +0100 Subject: [PATCH] Script execution --- script/templates/Regine.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/script/templates/Regine.py b/script/templates/Regine.py index b62bfb9..db3b375 100644 --- a/script/templates/Regine.py +++ b/script/templates/Regine.py @@ -40,7 +40,13 @@ RANGE_Y=[CENTER_Y - STEP_SIZE_Y*STEPS_Y, CENTER_Y + STEP_SIZE_Y*STEPS_Y] if EXPOSURES: - ENABLED_PLOTS = [ccd.dataMatrix] #Cannot plot current in 3d vscan x_index = y_index = e_index = 0 + ENABLED_PLOTS = [ccd.dataMatrix] #Cannot plot current in 3d vscan + POSITIONERS = POSITIONERS + [exposure_index()] + SENSORS = SENSORS + [exposure()] + RANGE_E=[0, len(EXPOSURES)-1] + +def gen(): + x_index = y_index = e_index = 0 for x_step in range(-STEPS_X, STEPS_X+1): range_y= range(STEPS_Y, -STEPS_Y-1, -1) if (ZIGZAG and(x_index%2 ==1)) else range(-STEPS_Y, STEPS_Y+1) for y_step in range_y: @@ -55,12 +61,6 @@ if EXPOSURES: yield([xpos,ypos]) y_index=y_index+1 x_index=x_index+1 - POSITIONERS = POSITIONERS + [exposure_index()] - SENSORS = SENSORS + [exposure()] - RANGE_E=[0, len(EXPOSURES)-1] - -def gen(): -