ptypy.engines.Bragg3d_engines.DM_3dBragg#
- class ptypy.engines.Bragg3d_engines.DM_3dBragg(ptycho_parent, pars)#
Bases:
DMDM engine adapted to 3d Bragg reconstruction. Specifically, sample supports are added (other regulizers might get added later). The engine is highly experimental and not based on any published algorithms, but on the notion that DM works well for 3d Bragg data except that the positioning along the beam path is ambiguous.
- __init__(ptycho_parent, pars)#
Need to override here, to copy the grouped “sample_support.” parameters properly.
Methods
__init__(ptycho_parent, pars)Need to override here, to copy the grouped "sample_support." parameters properly.
center_probe()clip_object(ob)Try deleting ever helper container.
Prepare for reconstruction.
engine_iterate([num])Compute num iterations.
Last minute initialization.
finalize()Clean up after iterations are done.
DM Fourier constraint update (including DM step).
Prepare for reconstruction.
iterate([num])Compute one or several iterations.
DM object update, modified with sample support.
DM overlap constraint update.
Position refinement update.
prepare()Last-minute preparation before iterating.
DM probe update.
support_constraint([storage])Enforces 2D support contraint on probe.
Attributes
COMPATIBLE_MODELSDEFAULTPOSREF_ENGINESSUPPORTED_MODELSalpha- engine_finalize()#
Try deleting ever helper container.
- engine_initialize()#
Prepare for reconstruction.
- engine_iterate(num=1)#
Compute num iterations.
- engine_prepare()#
Last minute initialization.
Everything that needs to be recalculated when new data arrives.
- finalize()#
Clean up after iterations are done.
- fourier_update()#
DM Fourier constraint update (including DM step).
- 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()#
DM object update, modified with sample support. We work with a generalized coordinate “s”, along which we calculate sample density profiles and apply cutoffs. The support type switches how this coordinate is calculated and used for cutoff. More types can easily be added.
- overlap_update()#
DM overlap constraint update.
- position_update()#
Position refinement update.
- prepare()#
Last-minute preparation before iterating.
- probe_update()#
DM probe update.
- support_constraint(storage=None)#
Enforces 2D support contraint on probe.