pysted.utils.flash_routine

pysted.utils.flash_routine(synapses, probability, synapse_flashing_dict, synapse_flash_idx_dict, curves_path, synapse_flash_curve_dict, isolated_synapses_frames, datamap)

This function makes 1 step in a flash routine. It loops through all the synapses in a frame to determine whether they will start flashing (if they aren’t already), or move the flash forward 1 time step if they are flashing, or reset the synapse if its flash is over.

Parameters:
  • synapses – A list of all the synapses in the datamap

  • probability – The probability with which a synapse will start flashing

  • synapse_flashing_dict – The dict listing whether each synapse is flashing or not

  • synapse_flash_idx_dict – The dict listing where in their flash each synapse is

  • curves_path – Path to the .npy file of the light curves being sampled

  • synapse_flash_curve_dict – The dict listing the sampled flash curve for every synapse

  • isolated_synapses_frames – The dict listing the isolated synapse frames

  • datamap – The datamap on which the synapses lie

Returns:

The updated dicts and datamap