From 06a491a96005874be4ba0c41a2a437824817e485 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sat, 3 Aug 2019 12:12:18 -0700 Subject: [PATCH] don't throw out our newly-reduced slices... --- fdfd_tools/waveguide_mode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdfd_tools/waveguide_mode.py b/fdfd_tools/waveguide_mode.py index d12ffbf..0b839d8 100644 --- a/fdfd_tools/waveguide_mode.py +++ b/fdfd_tools/waveguide_mode.py @@ -379,7 +379,7 @@ def compute_source_e(QE: field_t, # Trim a cell from each end of the propagation axis slices_reduced = list(slices) slices_reduced[axis] = slice(slices[axis].start + 1, slices[axis].stop - 1) - slices_reduced = tuple(slice(None), *slices) + slices_reduced = tuple(slice(None), *slices_reduced) # Don't actually need to mask out E here since it needs to be pre-masked (QE)