dx_prop should be a scalar?

This commit is contained in:
jan 2019-09-05 22:42:20 +02:00
parent bedec489aa
commit 2289c6d116

View File

@ -90,7 +90,7 @@ def solve_waveguide_mode(mode_number: int,
# Find dx in propagation direction
dxab_forward = numpy.array([dx[order[2]][slices[order[2]]] for dx in dxes])
dx_prop = 0.5 * sum(dxab_forward)
dx_prop = 0.5 * sum(dxab_forward)[0]
# Reduce to 2D and solve the 2D problem
args_2d = {