pysted.utils.generate_synapses_on_fiber

pysted.utils.generate_synapses_on_fiber(datamap_shape, main_fiber, n_syn, min_dist, synapse_scale=(5, 10))

Generates polygon objects (representing synapses) on the main fiber

Parameters:
  • datamap_shape – The shape of the datamap on which the main_fiber lies

  • main_fiber – Fiber object representing the main branch

  • n_syn – The interval from which we will sample the number of synapses to spawn (tuple)

  • min_dist – The minimal distance between 2 synapses, to prevent clumping

  • synapse_scale – The interval form which we will sample each synapses’ size

Returns:

A list containing all the synapses on the main fiber