Loading openflexure_microscope/api/default_extensions/scan.py +8 −6 Original line number Diff line number Diff line Loading @@ -41,8 +41,10 @@ def construct_grid(initial, step_sizes, n_steps, style="raster"): # iteratively generate the next location to append coord = [coord[ax] + [-1, 1][ax] * step_sizes[ax] for ax in range(2)] for direction in ([1, 0], [0, -1], [-1, 0], [0, 1]): for edge_images in range(side_length-1): coord = [coord[ax] + direction[ax] * step_sizes[ax] for ax in range(2)] for _ in range(side_length - 1): coord = [ coord[ax] + direction[ax] * step_sizes[ax] for ax in range(2) ] arr[i - 1].append(tuple(coord)) else: Loading Loading
openflexure_microscope/api/default_extensions/scan.py +8 −6 Original line number Diff line number Diff line Loading @@ -41,8 +41,10 @@ def construct_grid(initial, step_sizes, n_steps, style="raster"): # iteratively generate the next location to append coord = [coord[ax] + [-1, 1][ax] * step_sizes[ax] for ax in range(2)] for direction in ([1, 0], [0, -1], [-1, 0], [0, 1]): for edge_images in range(side_length-1): coord = [coord[ax] + direction[ax] * step_sizes[ax] for ax in range(2)] for _ in range(side_length - 1): coord = [ coord[ax] + direction[ax] * step_sizes[ax] for ax in range(2) ] arr[i - 1].append(tuple(coord)) else: Loading