wpg.beamline module

class wpg.beamline.Beamline(srwl_beamline=None)[source]

Bases: object

Set of optical elements and propagation parameters.

Init beamline.

Params srwl_beamline:
 if present will used for initialization.
append(optical_element, propagation_parameters)[source]

Appends optical element and propagation propagation parameters to the end of beamline

  • optical_element – SRW or wpg optical element
  • propagation_parameters – SRW propagation parameters list or wpg.optical_elements.UsePP object

Propagate wavefront through beamline.

Parameters:wfr (wpg.wavefront.Wavefront) – Input wavefront (will be re-writed after propagation)