From 56a1349959c5f00d142a471ccb6603452140823a Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Thu, 1 Aug 2019 23:16:32 -0700 Subject: [PATCH] Add missing return --- fdfd_tools/waveguide_mode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fdfd_tools/waveguide_mode.py b/fdfd_tools/waveguide_mode.py index aac718d..398f2eb 100644 --- a/fdfd_tools/waveguide_mode.py +++ b/fdfd_tools/waveguide_mode.py @@ -425,6 +425,8 @@ def compute_source_wg(E: field_t, omega=omega, dxes=dxes, axis=axis, polarity=polarity, slices=slices4, epsilon=epsilon, mu=mu) + return J + def compute_overlap_ce(E: field_t, wavenumber: complex,