accumulate_rays#
- optika.propagators.accumulate_rays(propagators, rays, axis)[source]#
Iterate through a sequence of ray propagators, calling
propagate_rays()on the given set of input rays, and store the resulting the rays at every propagator.- Parameters:
propagators (AbstractRayPropagator | Sequence[AbstractRayPropagator]) – A sequence of ray propagators to interact with rays.
rays (RayVectorArray) – The input rays to propagate through the sequence.
axis (str) – The new logical axis representing the sequence of propagators.
- Return type: