Skip to content

Commit 2746a12

Browse files
committed
Update for coords with batch dims
1 parent 0620f59 commit 2746a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/notebooks/metalens_challenge.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"\n",
152152
"ex, ey, ez = aux[\"efield\"]\n",
153153
"x, _, z = aux[\"field_coordinates\"]\n",
154-
"xplot, zplot = onp.meshgrid(x[:, 0], z, indexing=\"ij\")\n",
154+
"xplot, zplot = onp.meshgrid(x[0, :, 0], z, indexing=\"ij\")\n",
155155
"\n",
156156
"abs_field = onp.sqrt(onp.abs(ex) ** 2 + onp.abs(ey) ** 2 + onp.abs(ez) ** 2)\n",
157157
"\n",

0 commit comments

Comments
 (0)