7.3.5. pyafv.FiniteVoronoiSimulator.update_positions

FiniteVoronoiSimulator.update_positions(pts, A0=None)[source]

Update cell center positions.

Note

If the number of cells changes, the preferred areas for all cells are reset to the default value—defined either at simulator instantiation or by update_params()—unless A0 is explicitly specified.

Parameters:
  • pts (ndarray) – New cell center positions.

  • A0 (float | ndarray | None) – Optional, set new preferred area(s).

Raises:
  • ValueError – If pts does not have shape (N,2).

  • ValueError – If A0 is an array and does not have shape (N,).

Return type:

None