Closed askaradeniz closed 3 years ago
Commit 78341250164d746876cf183b22bc1d2a7d0982d3 :
Current test/test_learn_beam_propagation.py
returns no AssertionError for TR Fresnel
method. However, Bandlimited Angular Spectrum
method is still raising AssertionErrror.
Looks like numpy
and torch
has a relatively different exp
definition and this is an open issue at the moment.
Commit 3e5b2163f86d910d98da36b789d7372a51f886cc adds assertion
statement to the beam propagation methods in odak.learn.wave
that are not matching Numpy/Cupy
version.
I am closing the issue as the latest and greatest code resolves this issue.
Currently, beam propagation functions of
odak.wave
andodak.learn.wave
give different outputs for the same input field.As discussed in #7 and #10, these are some of the functions that we can compare:
odak.wave.set_amplitude
andodak.learn.set_amplitude
,fftn
andifftn
in torch with respect tofft2
andifft
in numpy, cupy.An example output for comparison from
test_learn_beam_propagation.py
withBandlimited Angular Spectrum
method: