utils

utils#

Functions

batch_crop_2d(array, corners, new_shape)

minimum_crop(positions, shape)

plane_waves(wave_vectors, extent, gpts[, ...])

rtype:

ndarray

prism_coefficients(positions, wave_vectors, xp)

prism_wave_vectors(cutoff, extent, energy, ...)

rtype:

ndarray

wrapped_crop_2d(array, corner, size)

rtype:

ndarray

wrapped_slices(start, stop, n)

rtype:

Tuple[slice, slice]