pysted.utils.action_execution_2
- pysted.utils.action_execution_2(action_selected, frame_shape, starting_pixel, pxsize, datamap, frozen_datamap, microscope, pdt, p_ex, p_sted, intensity_map, bleach, t_stack_idx)
Executes the selected action. Handles matching the starting_pixel with the number of pixels for which we can image. Combines this acquisition with the previously computed intensity_map in the case where a full scan was interupted by a flash, for example. :param action_selected: The selected action (for now, either a full confocal scan (at lower resolution) or a full
sted scan).
- Parameters:
frame_shape – The shape of the ROI
starting_pixel – The pixel at which the scan starts
pxsize – The acquisition pixel size
datamap – The datamap being imaged
frozen_datamap – A static version of the datamap roi, NOT SURE WHY THIS IS USED IN THE WAY IT IS
microscope – The microscope imageing the datamap
pdt – The pixel dwelltime (either scalar or array of size frame_shape)
p_ex – The excitation power (either scalar or array of size frame_shape)
p_sted – The STED power (either scalar or array of size frame_shape)
intensity_map – The intensity map for the previous acquisition, in case it was interrupted
bleach – Bool determining whether bleaching occurs or not
t_stack_idx – The time step at which we are in our experiment
- Returns:
acq, the acquisition (photons), bleached, the bleached datamap, datamap, the updated datamap, pixel_list, the pixel_list on which the acquisition was occuring, useful to figure out where the next acquisition should start