Currently (as of #333) the MieLens() and Lens(Mie) theories produce slightly different answers, even when the number of quadrature points is large for both theories. The following test, removed from holopy.scattering.tests.test_lens, illustrates this:
The difference between the fields is in the 6e-5 range, which is too small to be a physics mistake, but larger than numerical truncation should be. My hunch is that there is a numerical issue / incorrectness / difference in calculating the Mie scattering a_ls and b_ls between the coefficients called in MieLens and those in Mie(), as they are two distinct pieces of code.
This should be figured out, but at the 6e-5 it is unlikely that this will have a serious effect on fitting holograms.
Currently (as of #333) the MieLens() and Lens(Mie) theories produce slightly different answers, even when the number of quadrature points is large for both theories. The following test, removed from
holopy.scattering.tests.test_lens
, illustrates this:The difference between the fields is in the 6e-5 range, which is too small to be a physics mistake, but larger than numerical truncation should be. My hunch is that there is a numerical issue / incorrectness / difference in calculating the Mie scattering
a_l
s andb_l
s between the coefficients called in MieLens and those in Mie(), as they are two distinct pieces of code.This should be figured out, but at the 6e-5 it is unlikely that this will have a serious effect on fitting holograms.