fix phase in expand_wgmode

This commit is contained in:
Jan Petykiewicz 2019-08-26 00:28:19 -07:00
parent d6a34b280e
commit 3887a8804f

View File

@ -458,7 +458,7 @@ def expand_wgmode_e(E: field_t,
a_shape = numpy.roll([1, -1, 1, 1], axis)
a_E = numpy.real(dxes[0][axis]).cumsum()
r_E = a_E - a_E[slices[axis]]
iphi = polarity * 1j * wavenumber
iphi = polarity * -1j * wavenumber
phase_E = numpy.exp(iphi * r_E).reshape(a_shape)
# Expand our slice to the entire grid using the phase factors