pysrw.lib.srwlib.SRWLOptShift#
- class pysrw.lib.srwlib.SRWLOptShift(_shift_x=0, _shift_y=0)[source]#
Bases:
SRWLOpt
Optical Element: Shirt
- __init__(_shift_x=0, _shift_y=0)[source]#
- Parameters:
_shift_x – horizontal shift [m]
_shift_y – vertical shift [m]
Methods
__init__
([_shift_x, _shift_y])- param _shift_x:
horizontal shift [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]