pysrw.propagation.cropOpticalSystem#
- pysrw.propagation.cropOpticalSystem(opticalSystem, startPropAt=None, stopPropAt=None)[source]#
Crop an optical system to propagate a wavefront only within a sub-sequence of the initial system.
- Parameters:
opticalSystem – the dictionary of the whole optical system.
startPropAt (optional) – the name of the optical element to start from. If None, the first element is picked as start. Defaults to None.
stopPropAt (optional) – the name of the optical element to end with. If None, the last element is picked as stop. Defaults to None.
- Returns:
the dictionary of the cropped optical system.
- Return type:
dict