treams.TMatrix.valid_points

TMatrix.valid_points(grid, radii)

Points on the grid where the expansion is valid.

The expansion of the electromagnetic field is valid outside of the circumscribing spheres of each object. From a given set of coordinates mark those that are outside of the given radii.

Parameters:
  • grid (array-like) – Points to assess. The last dimension needs length three and corresponds to the Cartesian coordinates.

  • radii (Sequence[float]) – Radii of the circumscribing spheres. Each radius corresponds to a position of the basis.

Returns:

array