magneticScattering.structures.tessellate#

tessellate(unit_cell, times, pattern='sq')#

Create a lattice from the given unit cell.

Parameters:
  • unit_cell (ndarray) – Structure to be tessellated, shaped (…, nx, ny)

  • times (int | list[int]) – The amount of times to tessellate structure in both dimensions

  • pattern (str) – ‘hex’ for hexagonal or ‘sq’ for square tiling

Returns:

Crustal structure shaped (…, nx*times, ny*times)

Return type:

ndarray