pysrw.propagation.groupOpticalSystem#
- pysrw.propagation.groupOpticalSystem(opticalSystem, groupSeq)[source]#
Inspect the elements of an optical system and group a given sequence of elements. Useful if the user is not interested in the intensity on some intermediate planes (for instance just after a lens). The computation of a sequence is more efficicent because it is performed at the SRW level and requires also less memory cause the wavefront is overridden.
- Parameters:
opticalSystem – the optical system dictionary.
groupSeq – list of element types to group.
- Returns:
- list of optical containers where elements are grouped according
to the specified sequence.
- Return type:
list