Skip to content

Commit 8a339ce

Browse files
authored
Merge pull request #10 from gdsfactory/development
cmz demux notebook: fix GIF_PATH for docs build
2 parents aeb0e3d + dae0e84 commit 8a339ce

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

examples/inverse_design/03_photonic_cmz_demux.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,11 @@
10431043
" return (*lines_anim, title_txt)\n",
10441044
"\n",
10451045
"ani = animation.FuncAnimation(fig, _frame, frames=len(ANIM_STEPS), interval=80, blit=True)\n",
1046-
"GIF_PATH = \"cmz_optimisation.gif\"\n",
1046+
"# Path is relative to the repo root — matches 02_oscillator and 04_hemt. MkDocs\n",
1047+
"# executes notebooks with CWD = repo root, so this lands the GIF next to the\n",
1048+
"# notebook source where the markdown reference below (and the docs hoist\n",
1049+
"# sentinel) can find it.\n",
1050+
"GIF_PATH = \"examples/inverse_design/cmz_optimisation.gif\"\n",
10471051
"ani.save(GIF_PATH, writer=animation.PillowWriter(fps=12), dpi=130)\n",
10481052
"plt.close(fig)\n",
10491053
"print(f\"Saved → {GIF_PATH} ({len(ANIM_STEPS)} frames)\")\n"

0 commit comments

Comments
 (0)