From 2289c6d11615ac3dc0a5976208f804ff20657a3c Mon Sep 17 00:00:00 2001
From: jan <jan@orange.mpxd.net>
Date: Thu, 5 Sep 2019 22:42:20 +0200
Subject: [PATCH] dx_prop should be a scalar?

---
 meanas/fdfd/waveguide_mode.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meanas/fdfd/waveguide_mode.py b/meanas/fdfd/waveguide_mode.py
index e94429f..0838188 100644
--- a/meanas/fdfd/waveguide_mode.py
+++ b/meanas/fdfd/waveguide_mode.py
@@ -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 = {