first steps on planned changes

This commit is contained in:
Ryan Tan 2024-09-06 11:01:14 +02:00
parent 4450fd1e76
commit e2f92a2faf

View File

@ -165,6 +165,9 @@ def move_xy(target_x, target_y): # moving in x and y direction closed to desired
# intensity_data = [] # To store data from each scan # intensity_data = [] # To store data from each scan
# data_list = [] # data_list = []
# TODO: change the save file path to be entered as in function header for the following functions:
# move_scan_xy, sweep_b_val, b_field_rotation
def move_scan_xy(range_x, range_y, resolution, Settings, baseFileName): def move_scan_xy(range_x, range_y, resolution, Settings, baseFileName):
""" """
This function moves the positioners to scan the sample with desired ranges and resolution in 2 dimensions. This function moves the positioners to scan the sample with desired ranges and resolution in 2 dimensions.
@ -219,9 +222,7 @@ def move_scan_xy(range_x, range_y, resolution, Settings, baseFileName):
#this if will make the positioner wait a bit longer to really go to the target. #this if will make the positioner wait a bit longer to really go to the target.
if y == False: if y == False:
move_axis(axis_y, y_positions) move_axis(axis_y, y_positions)
y = True y = True
#we acquire with the LF #we acquire with the LF
acquire_name_spe = f'{baseFileName}_X{x_positions}_Y{y_positions}' acquire_name_spe = f'{baseFileName}_X{x_positions}_Y{y_positions}'