Skip to content

Commit

Permalink
Fixing a bug related to odak.learn.wave.gerchberg_saxton().
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanaksit committed Apr 23, 2022
1 parent c8af57e commit 9df3b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odak/learn/wave/classical.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def gerchberg_saxton(field, n_iterations, distance, dx, wavelength, slm_range=6.
hologram, _ = produce_phase_only_slm_pattern(hologram, slm_range)
reconstruction = propagate_beam(
hologram, k, distance, dx, wavelength, propagation_type)
reconstruction = set_amplitude(hologram, field)
reconstruction = set_amplitude(reconstruction, field)
reconstruction = propagate_beam(
hologram, k, distance, dx, wavelength, propagation_type)
return hologram, reconstruction
Expand Down

0 comments on commit 9df3b6a

Please sign in to comment.