Check out the Hyperspy Workshop May 13-17, 2024 Online

filter_vectors_ragged#

pyxem.utils.vectors.filter_vectors_ragged(z, min_magnitude, max_magnitude, columns=[0, 1])[source]#

Filters the diffraction vectors to accept only those with magnitudes within a user specified range.

Parameters:
  • min_magnitude (float) – Minimum allowed vector magnitude.

  • max_magnitude (float) – Maximum allowed vector magnitude.

Returns:

filtered_vectors – Diffraction vectors within allowed magnitude tolerances.

Return type:

numpy.ndarray