Hi Matthew,
in the propagation.direct_integration_method.py in the calculate_meshgrid function there is the line
grid_shape = [field_shape[i] + propagation_plane.shape[i] - 1 for i in range(2)]
Where does this -1 come from? For planes of size (1024,1024) I get a resulting grid of (2047, 2047), which creates problems with the following FFT.
Just wondering whether this is a bug or intended behaviour.
Hi Matthew,
in the
propagation.direct_integration_method.pyin thecalculate_meshgridfunction there is the lineWhere does this -1 come from? For planes of size (1024,1024) I get a resulting grid of (2047, 2047), which creates problems with the following FFT.
Just wondering whether this is a bug or intended behaviour.