ptypy.custom.threepie.ThreePIE#

class ptypy.custom.threepie.ThreePIE(ptycho_parent, pars=None)#

Bases: EPIE

An extension of EPIE to include multislice

__init__(ptycho_parent, pars=None)#

Stochastic Douglas-Rachford reconstruction engine.

Methods

__init__(ptycho_parent[, pars])

Stochastic Douglas-Rachford reconstruction engine.

center_probe()

engine_finalize()

Synchronize positions

engine_initialize()

Prepare the position refinement object for use further down the line.

engine_iterate([num])

Compute one iteration.

engine_prepare()

Last minute initialization.

finalize()

Clean up after iterations are done.

fourier_update(view)

General implementation of Fourier update

initialize()

Prepare for reconstruction.

iterate([num])

Compute one or several iterations.

multislice_update(view)

Performs one 'iteration' of 3PIE (multislice ePIE) for a single view.

object_update(view, exit_wave)

Engine-specific implementation of object update

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

support_constraint([storage])

Enforces 2D support contraint on probe.

Attributes

COMPATIBLE_MODELS

DEFAULT

POSREF_ENGINES

SUPPORTED_MODELS

alpha

beta

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.

multislice_update(view)#

Performs one ‘iteration’ of 3PIE (multislice ePIE) for a single view. Based on https://doi.org/10.1364/JOSAA.29.001606

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.