ewoksid02.utils.caving.shift_position_vectors#

ewoksid02.utils.caving.shift_position_vectors(x_vector, y_vector, center_x, center_y, use_cupy=False)[source]#

Shift a pair of index vectors, to point to centro-symmetric brothers

Inputs:
  • x_vector (numpy.ndarray) : index vector along the first dimension of array

  • y_vector (numpy.ndarray) : index vector along the second dimension of array

  • center_x (int): beam center in the first data dimension

  • center_y (int): beam center in the second data dimension

  • use_cupy (bool): the return result is transfered to the GPU using cupy

Outputs:
  • Tuple: pair of shifted x,y index vectors

Parameters:
  • x_vector (ndarray)

  • y_vector (ndarray)

  • center_x (int)

  • center_y (int)

  • use_cupy (bool)