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

get_npeaks#

pyxem.utils.vectors.get_npeaks(found_peaks)[source]#

Returns the number of entries in a list. For use with map().

Parameters:

found_peaks (numpy.ndarray) – Array of found peaks.

Returns:

len – The number of peaks in the array.

Return type:

int