polyTEM.crystal_peaks.crystal_stack_3D.find_match

polyTEM.crystal_peaks.crystal_stack_3D.find_match(x, y)

For each element in y, get the index of x that matches that element Used to match the tilt_angles between the images used to create the CrystalStack3D and those used in the AlignmentResult

Usage: x should be AlignmentResult tilt angles and y should be CrystalStack3D tilt angles

Parameters:
  • x – numpy array

  • y – numpy array

Returns:

numpy array

Return type:

indices