fascicle.fill_with_population
- fascicle.fill_with_population(axons_diameter: array = None, axons_type: array = None, y_axons: array = None, z_axons: array = None, fit_to_size: bool = False, delta: float = 1, delta_in: float | None = None, delta_trace: float = 1, method: Literal['default', 'packing'] = 'default', overwrite=False, n_iter: int = 500) None[source]
Fill the fascicle with an axon population
- Parameters:
axons_diameters (np.array) – Array containing all the diameters of the axon population
axons_type (np.array) – Array containing a ‘1’ value for indexes where the axon is myelinated (A-delta or not), else ‘0’
y_axons (np.array) – y coordinate of the axon population, in um
z_axons (np.array) – z coordinate of the axons population, in um
delta (float) – axon-to-axon and axon to border minimal distance, by default .01
delta_trace (float | None, optional) – _description_, by default None
delta_in (float | None, optional) – _description_, by default None
fit_to_size (bool) – if true, the axon population is extended to fit within fascicle size, if not the population is kept as is
n_iter (int) – number of interation for the packing algorithm if the y-x axon coordinates are not specified