3.3.5. pyafv.FiniteVoronoiSimulator.update_positions

FiniteVoronoiSimulator.update_positions(pts, A0=None)

Update cell center positions.

Note

If the number of points changes, the preferred areas for all cells are reset to the default value (set when initializing the simulator instance or by update_params()) unless specified via the A0 argument.

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