pysted.utils.generate_secondary_fibers
- pysted.utils.generate_secondary_fibers(datamap_shape, main_fiber, n_sec, min_dist=10, sec_len=(2, 6), seed=None)
This function allows to spawn secondary fibers branching from a main fiber
- Parameters:
datamap_shape – The shape of the datamap in which the main fiber resides
main_fiber – The main fiber object to which we will add secondary fiber branches
n_sec – The interval for the number of secondary branches we wish to spawn (tuple)
min_dist – The min distance between spawned secondary fiber, to ensure they are not all clumped
sec_len – The interval for the length of the secondary fibers (tuple)
seed – Random number generator seed
- Returns:
a list containing the secondary fiber objects