pysrw.lib.srwlib.SRWLOptD

pysrw.lib.srwlib.SRWLOptD#

class pysrw.lib.srwlib.SRWLOptD(_L=0, _treat=0)[source]#

Bases: SRWLOpt

Optical Element: Drift Space

__init__(_L=0, _treat=0)[source]#
Parameters:
  • _L – Length [m]

  • _treat – switch specifying whether the absolute optical path should be taken into account in radiation phase (=1) or not (=0, default)

Methods

__init__([_L, _treat])

param _L:

Length [m]

get_orient([_e])

randomize()

Randomizes parameters of optical element according to self.RandParam to simulate e.g. impact of vibrations on coherence (in P-C calculations).

set_rand_par(_rand_par)

Sets list of params to be eventually randomized in some types of calculations :param _rand_par: list of params to be randomized; each element of this list should be: ['param_name', val_avg, val_range, meth]