From e54dd1e6b47ca14efdaab80b6add193b3b29645d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Beltr=C3=A1n=20Mej=C3=ADa?= Date: Sat, 24 May 2025 13:39:04 -0300 Subject: [PATCH] Update Fourier-Metalens.ipynb Changed the first argument of every call to opt.plot2D() to True. Not sure why, but this was causing the following error message: AttributeError: 'IndexedSource' object has no attribute 'center' --- python/examples/adjoint_optimization/Fourier-Metalens.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/examples/adjoint_optimization/Fourier-Metalens.ipynb b/python/examples/adjoint_optimization/Fourier-Metalens.ipynb index 7430c4915..6b447ff61 100644 --- a/python/examples/adjoint_optimization/Fourier-Metalens.ipynb +++ b/python/examples/adjoint_optimization/Fourier-Metalens.ipynb @@ -197,7 +197,7 @@ " plt.figure()\n", " ax = plt.gca()\n", " opt.plot2D(\n", - " False,\n", + " True,\n", " ax=ax,\n", " plot_sources_flag=False,\n", " plot_monitors_flag=False,\n", @@ -2703,7 +2703,7 @@ "plt.figure()\n", "ax = plt.gca()\n", "opt.plot2D(\n", - " False,\n", + " True,\n", " ax=ax,\n", " plot_sources_flag=False,\n", " plot_monitors_flag=False,\n",