ptypy.core.illumination.init_storage#

ptypy.core.illumination.init_storage(storage, pars, energy=None, **kwargs)#

Initializes Storage storage with parameters from pars

Parameters:
  • storage (Storage) – A Storage instance in the probe container of Ptycho

  • pars (Param) –

    Parameter structure for creating a probe / illumination. See DEFAULT Also 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.