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
raysrays (RayVectorArray) – the input rays to propagate through the sequence
axis (str) – the new axis representing the sequence of propagators
- Return type: