axon_population.reshape_geometry

axon_population.reshape_geometry(geometry: None | Type[CShape] = None, center: tuple[float, float] = None, radius: float | tuple[float, float] = None, rot: float = None, discard_placement: bool = False)[source]

Update the population geometry while reusing unchanged geometry parameters.

Parameters:
  • geometry (Type[CShape] | None, optional) – New geometry type or explicit geometry object.

  • center (tuple[float, float] | None, optional) – New center coordinates.

  • radius (float | tuple[float, float] | None, optional) – New radius or semi-axes.

  • rot (float | None, optional) – New rotation angle.

  • discard_placement (bool, optional) – If True, drop the current axon placement after reshaping.