pysted.utils.generate_synapse_flash_dicts
- pysted.utils.generate_synapse_flash_dicts(synapses_list, roi_shape)
This function is used to generate the dictionnaries needed to keep track of which synapses are flashing and where they are situatied in the flash and such
- Parameters:
synapses_list – The list of all the synapses in the frame (flattenened)
roi_shape – The shape of the frame
- Returns:
synapse_flashing_dict, a dict corresponding the synapses to whether they are currently flashing or not, synapse_flash_idx_dict, a dict corresponding each flash to where in the light curve they are at, synapse_flash_curve_dict, a dict containing the light curve sampled for the flash of this synapse, isolated_synapses_frames, a dict containing a frame for each synapse in which only it appears and the rest
is 0