Open TAU-Reinier opened 8 months ago
The line Fout = F did not create a copy of F, just a second reference, and the line Fout.field *= _np.exp(-1j * Ph) modified the object referenced by both Fout and F, so the input Field also came out filtered.
Fout = F
Fout.field *= _np.exp(-1j * Ph)
The line
Fout = F
did not create a copy of F, just a second reference, and the lineFout.field *= _np.exp(-1j * Ph)
modified the object referenced by both Fout and F, so the input Field also came out filtered.