remove_collision

nrv.nmod.utils.remove_collision(axons_diameters: ndarray, y_axons: ndarray, z_axons: ndarray, axon_type: ndarray | None = None, delta: float = 0, return_mask: bool = False) array[source]

Remove collinding axons in a population

Parameters:
  • axons_diameters (np.ndarray) – array containing the axons diameters

  • y_axons (np.ndarray) – y coordinate of the axons to store, in um

  • z_axons (np.ndarray) – z coordinate of the axons to store, in um

  • axon_type (np.ndarray) – type of the axon (Myelinated = 1; Unmyelinated = 0)

  • delta (float) – minimal inter-axon distance to respect before considering collision, in um

  • return_mask (bool) – return, if True return only a mask with the valid axons.