ptypy.custom.WASP.WASP#

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

Bases: PositionCorrectionEngine

Weighted Average of Sequential Projections

__init__(ptycho_parent, pars=None)#

Position Correction engine.

Methods

__init__(ptycho_parent[, pars])

Position Correction engine.

center_probe()

Copied from _ProjectionEngine

clip_object(ob)

Copied from _ProjectionEngine

engine_finalize()

Synchronize positions

engine_initialize()

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

engine_iterate([num])

Compute num iterations.

engine_prepare()

Copied from _ProjectionEngine (a large part of it)

finalize()

Clean up after iterations are done.

fourier_update(view)

General implementation of Fourier update (copied from stochastic)

initialize()

Prepare for reconstruction.

iterate([num])

Compute one or several iterations.

object_update(view, ex_old)

overlap_update()

position_update()

Position refinement update.

prepare()

Last-minute preparation before iterating.

probe_update(view, ex_old, ob_old)

support_constraint([storage])

Enforces 2D support contraint on probe.

wasp_averaging()

Attributes

COMPATIBLE_MODELS

DEFAULT

POSREF_ENGINES

SUPPORTED_MODELS

center_probe()#

Copied from _ProjectionEngine

clip_object(ob)#

Copied from _ProjectionEngine

engine_finalize()#

Synchronize positions

engine_initialize()#

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

engine_iterate(num=1)#

Compute num iterations.

engine_prepare()#

Copied from _ProjectionEngine (a large part of it)

finalize()#

Clean up after iterations are done.

fourier_update(view)#

General implementation of Fourier update (copied from stochastic)

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.

position_update()#

Position refinement update.

prepare()#

Last-minute preparation before iterating.

support_constraint(storage=None)#

Enforces 2D support contraint on probe.