ptypy.core.geometry.BasicNearfieldPropagator#
- class ptypy.core.geometry.BasicNearfieldPropagator(geo_pars=None, ffttype='scipy', **kwargs)#
Bases:
objectBasic two step (i.e. two ffts) Nearfield Propagator.
- __init__(geo_pars=None, ffttype='scipy', **kwargs)#
- Parameters:
geo_pars (Param or dict) – Parameter dictionary as in
DEFAULT.ffttype (str or tuple) –
Type of FFT implementation. One of:
’fftw’ for pyFFTW
’numpy’ for numpy.fft.fft2
’scipy’ for scipy.fft.fft2
2 or 4-tuple of (forward_fft2(),inverse_fft2(), [scaling,inverse_scaling])
Methods
__init__([geo_pars, ffttype])bw(W)Computes backward propagated wavefront of input wavefront W.
fw(W)Computes forward propagated wavefront of input wavefront W.
update([geo_pars])Update internal p dictionary.
- bw(W)#
Computes backward propagated wavefront of input wavefront W.
- fw(W)#
Computes forward propagated wavefront of input wavefront W.
- update(geo_pars=None, **kwargs)#
Update internal p dictionary. Recompute all internal array buffers.