ptypy.engines.stochastic.EPIE#
- class ptypy.engines.stochastic.EPIE(ptycho_parent, pars=None)#
Bases:
_StochasticEngine,EPIEMixinThe ePIE algorithm.
- __init__(ptycho_parent, pars=None)#
Stochastic Douglas-Rachford reconstruction engine.
Methods
__init__(ptycho_parent[, pars])Stochastic Douglas-Rachford reconstruction engine.
center_probe()Synchronize positions
Prepare the position refinement object for use further down the line.
engine_iterate([num])Compute one iteration.
Last minute initialization.
finalize()Clean up after iterations are done.
fourier_update(view)General implementation of Fourier update
Prepare for reconstruction.
iterate([num])Compute one or several iterations.
object_update(view, exit_wave)Engine-specific implementation of object update
Position refinement update.
position_update_local(view)Position refinement update for current view.
prepare()Last-minute preparation before iterating.
probe_update(view, exit_wave)Engine-specific implementation of probe update
support_constraint([storage])Enforces 2D support contraint on probe.
Attributes
COMPATIBLE_MODELSDEFAULTPOSREF_ENGINESSUPPORTED_MODELSalphabeta- engine_finalize()#
Synchronize positions
- engine_initialize()#
Prepare the position refinement object for use further down the line.
- engine_iterate(num=1)#
Compute one iteration.
- engine_prepare()#
Last minute initialization. Everything that needs to be recalculated when new data arrives.
- finalize()#
Clean up after iterations are done.
- fourier_update(view)#
General implementation of Fourier update
- Parameters:
view (View)
data (View to diffraction)
- initialize()#
Prepare for reconstruction.
- iterate(num=None)#
Compute one or several iterations.
- numNone, int number of iterations.
If None or num<1, a single iteration is performed.
- object_update(view, exit_wave)#
Engine-specific implementation of object update
- Parameters:
view (Collection of exit waves associated with the current)
data (View to diffraction)
exit_wave (dict)
view
- position_update()#
Position refinement update.
- position_update_local(view)#
Position refinement update for current view.
- prepare()#
Last-minute preparation before iterating.
- probe_update(view, exit_wave)#
Engine-specific implementation of probe update
- Parameters:
view (Collection of exit waves associated with the current)
data (View to diffraction)
exit_wave (dict)
view
- support_constraint(storage=None)#
Enforces 2D support contraint on probe.