magneticScattering.structures.pad_circle#

pad_circle(structure, times=2, repeat_mode='edge')#

Applies a circular mask and then pads the structure with the given repeat mode.

Parameters:
  • structure (ndarray) – Structure to be padded.

  • times (int) – The amount of padding as a multiple of the structure size.

  • repeat_mode (str) – The mode to use for padding.

Returns:

Padded structure.

Return type:

ndarray