Skip to content

Commit

Permalink
Modified the behavior of optika.propagators.accumulate_rays() to no…
Browse files Browse the repository at this point in the history
…t return the input rays. (#95)
  • Loading branch information
byrdie authored Oct 11, 2024
1 parent 3d9f081 commit d9d00c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optika/propagators.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def accumulate_rays(
if isinstance(propagators, AbstractRayPropagator):
propagators = [propagators]

result = [rays]
result = []
for propagator in propagators:
rays = propagator.propagate_rays(rays)
result.append(rays)
Expand Down

0 comments on commit d9d00c5

Please sign in to comment.