pysrw.lib.srwlib.SRWLOptL#
- class pysrw.lib.srwlib.SRWLOptL(_Fx=1e+23, _Fy=1e+23, _x=0, _y=0)[source]#
Bases:
SRWLOptOptical Element: Thin Lens
- __init__(_Fx=1e+23, _Fy=1e+23, _x=0, _y=0)[source]#
- Parameters:
_Fx – focal length in horizontal plane [m]
_Fy – focal length in vertical plane [m]
_x – horizontal coordinate of center [m]
_y – vertical coordinate of center [m]
Methods
__init__([_Fx, _Fy, _x, _y])- param _Fx:
focal length in horizontal plane [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]