pysrw.lib.srwlib.SRWLOptAng

pysrw.lib.srwlib.SRWLOptAng#

class pysrw.lib.srwlib.SRWLOptAng(_ang_x=0, _ang_y=0)[source]#

Bases: SRWLOpt

Optical Element: Angle

__init__(_ang_x=0, _ang_y=0)[source]#
Parameters:
  • _ang_x – horizontal angle [rad]

  • _ang_y – vertical angle [rad]

Methods

__init__([_ang_x, _ang_y])

param _ang_x:

horizontal angle [rad]

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]