ptyrad.init.initializer#
Initialize measurements, object, probe, probe positions, tilts, and other variables
This module is completely using NumPy for interoperability,
so users can initialize their data with PtyRAD first and reconstruct with other approaches later.
Classes
|
Numpy-based general purpose initializer used for initializing diffraction patterns, object, probe, scan patterns, etc. |
- class ptyrad.init.initializer.Initializer(init_params, seed=None)[source]#
Bases:
objectNumpy-based general purpose initializer used for initializing diffraction patterns, object, probe, scan patterns, etc.
- init_cache()[source]#
Check if the source paths are the same, if so, we may cache that field to reduce file loading time
- init_calibration()[source]#
Setting up reconstruction calibration (i.e., real and k-space pixel size)
- set_variables_dict()[source]#
Initialize and set the init_variables dict used for downstream reconstructions
- init_omode_occu()[source]#
Initialize the mixed-state object mode occupancy so each mode has a fixed weight
- init_obj_tilts()[source]#
Initialize the object crystal tilts. Tilts can be global tilt (1,2) or pos-dependent tilt (N,2)