def fftshift(a, axes=None): '''Swap half-spaces End up with zero frequency component at centre position axes -- list of axes to swap and if None then all axes swapped ''' return _fft.fftshift(a, axes)