remove_dead#

pyxem.utils.diffraction.remove_dead(z, deadpixels)[source]#

Remove dead pixels from experimental electron diffraction patterns.

Parameters:
  • z (np.array()) – Two-dimensional data array containing signal.

  • deadpixels (np.array()) – Array containing the array indices of dead pixels in the diffraction pattern.

Returns:

img – Two-dimensional data array containing z with dead pixels removed.

Return type:

array