fascicle.fill_with_population

fascicle.fill_with_population(axons_diameter: <MagicMock name='mock.array' id='139958333163664'>, axons_type: <MagicMock name='mock.array' id='139958333163664'>, delta: float = 1, y_axons: <MagicMock name='mock.array' id='139958333163664'> = None, z_axons: <MagicMock name='mock.array' id='139958333163664'> = None, fit_to_size: bool = False, n_iter: int = 20000) 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’

  • delta (float) – axon-to-axon and axon to border minimal distance

  • y_axons (np.array) – y coordinate of the axon population, in um

  • z_axons (np.array) – z coordinate of the axons population, in um

  • 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

  • WARNING (If y_axons and z_axons are not specified then axon-packing algorithm is called within the method.)