From 76701f593cc34c306cdbf9db69010c3e24685175 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 14 Jan 2025 21:59:37 -0800 Subject: [PATCH] Check overlap only on forward-propagating part of mode --- examples/fdfd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fdfd.py b/examples/fdfd.py index e28a2d2..16c2f20 100644 --- a/examples/fdfd.py +++ b/examples/fdfd.py @@ -236,7 +236,7 @@ def test1(solver=generic_solver): pyplot.grid(alpha=0.6) pyplot.title('Overlap with mode') pyplot.show() - print('Average overlap with mode:', sum(q)/len(q)) + print('Average overlap with mode:', sum(q[8:32])/len(q[8:32])) def module_available(name):