Main improvement is simplification of the Gaussian creation function via SRW called in LaserPulseSlice class. Users may now directly specify a number of mesh points. Backward propagation is no longer necessary. The improved Gaussian creation function, createGsnSrcSRW(), resides in srwl_uti_data.py and is called within the LaserPulseSlice class in pulse.py. Several parameters in _ENVELOPE_DEFAULTShave been shifted to _LASER_PULSE_DEFAULTS in an effort to increase consistency. This breaks the creation of the laser envelope within the LaserPulse class. Cleaning up the relationship to the laser envelope will be completed in future iterations of the library. An example notebook demonstrating use of the new LaserPulse class can be found here: notebook
Main improvement is simplification of the Gaussian creation function via SRW called in
LaserPulseSlice
class. Users may now directly specify a number of mesh points. Backward propagation is no longer necessary. The improved Gaussian creation function,createGsnSrcSRW()
, resides in srwl_uti_data.py and is called within theLaserPulseSlice
class in pulse.py. Several parameters in_ENVELOPE_DEFAULTS
have been shifted to_LASER_PULSE_DEFAULTS
in an effort to increase consistency. This breaks the creation of the laser envelope within theLaserPulse
class. Cleaning up the relationship to the laser envelope will be completed in future iterations of the library. An example notebook demonstrating use of the newLaserPulse
class can be found here: notebook