pysted.base.TemporalDatamap.create_t_stack_dmap
- TemporalDatamap.create_t_stack_dmap(acq_time, min_timestep, fwhm_step_sec_correspondance, curves_path, probability)
Generates the flashes for the TemporalDatamap.
Updates the dictionnaries to confirm that flash subdatamaps exist and to initialize the flash time step at 0. Generates a flash_tstack, a 3D array containing the evolution of the flashes for every time step. For time step t, the whole_datamap is thus base + flash_tstack[t]
- Parameters:
acq_time – The time for which the acquisition will last, determines how many flash steps will occur. (s)
min_timestep – The smallest discrete time steps on which the experiment will be run. For instance, if we want an experiment to last 10 seconds, we need to define a loop that will iterate through minimal time increments, which could be 1s, 0.1s, …
fwhm_step_sec_correspondance – Tuple containing the correspondance between the width of the FWHM of a a flash in arbitrary time step units, and how long we want that FWHM to last. Usually (10, 1.5) is used. MODIFY THIS SO THIS IS A DEFAULT VALUE.
curves_path – Path to the .npy file of the light curves being sampled in order to generate random flashes.
probability – The probability of a flash starting on a synapse.