ptypy.core.illumination.init_storage#
- ptypy.core.illumination.init_storage(storage, pars, energy=None, **kwargs)#
Initializes
Storagestorage with parameters from pars- Parameters:
storage (Storage) – A
Storageinstance in the probe container ofPtychopars (Param) –
Parameter structure for creating a probe / illumination. See
DEFAULTAlso accepted as argument:string giving the filename of a previous reconstruction to extract storage from.
string giving the name of an available TEMPLATE
FIXME: document other string cases.
numpy array: interpreted as initial illumination.
energy (float, optional) – Energy associated with this storage. If None, tries to retrieve the energy from the already initialized ptypy network.