Skip to content

Commit ebeb84d

Browse files
committed
ignore palace data files
1 parent 7a88c06 commit ebeb84d

3 files changed

Lines changed: 63 additions & 35 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
ihp-klayout/
22
docs/cells.rst
33

4+
# Simulation outputs
5+
palace-sim-*/
6+
dev-palace-simulation-*/
7+
48
# Byte-compiled / optimized / DLL files
59
__pycache__/
610
*.py[cod]

examples/palace_demo_cpw.ipynb

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
18-
"from gdsfactoryplus import sim\n",
19-
"from sim_utils import plot_mesh_pv, print_job_summary, upload_simulation_dir\n",
20-
"\n",
21-
"\n",
22-
"# uv pip install \"gplugins[palace] @ git+https://github.com/gdsfactory/gplugins.git@palace-api\""
18+
"!uv pip install \"gplugins[palace] @ git+https://github.com/gdsfactory/gplugins.git@palace-api\""
2319
]
2420
},
2521
{
@@ -28,14 +24,25 @@
2824
"id": "2",
2925
"metadata": {},
3026
"outputs": [],
27+
"source": [
28+
"from gdsfactoryplus import sim\n",
29+
"from sim_utils import plot_mesh_pv, print_job_summary, upload_simulation_dir"
30+
]
31+
},
32+
{
33+
"cell_type": "code",
34+
"execution_count": null,
35+
"id": "3",
36+
"metadata": {},
37+
"outputs": [],
3138
"source": [
3239
"# === Configuration ===\n",
33-
"OUTPUT_DIR = \"./ihp_cpw\""
40+
"OUTPUT_DIR = \"./palace-sim-cpw\""
3441
]
3542
},
3643
{
3744
"cell_type": "markdown",
38-
"id": "3",
45+
"id": "4",
3946
"metadata": {},
4047
"source": [
4148
"### Load a pcell from IHP PDK"
@@ -44,7 +51,7 @@
4451
{
4552
"cell_type": "code",
4653
"execution_count": null,
47-
"id": "4",
54+
"id": "5",
4855
"metadata": {},
4956
"outputs": [],
5057
"source": [
@@ -134,7 +141,7 @@
134141
},
135142
{
136143
"cell_type": "markdown",
137-
"id": "5",
144+
"id": "6",
138145
"metadata": {},
139146
"source": [
140147
"### Generate the mesh"
@@ -143,7 +150,7 @@
143150
{
144151
"cell_type": "code",
145152
"execution_count": null,
146-
"id": "6",
153+
"id": "7",
147154
"metadata": {},
148155
"outputs": [],
149156
"source": [
@@ -186,20 +193,25 @@
186193
{
187194
"cell_type": "code",
188195
"execution_count": null,
189-
"id": "7",
196+
"id": "8",
190197
"metadata": {},
191198
"outputs": [],
192199
"source": [
193200
"# Static PNG\n",
194-
"plot_mesh_pv(f\"{OUTPUT_DIR}/palace.msh\", show_groups=[\"metal\", \"P\"], interactive=False)\n",
201+
"plot_mesh_pv(\n",
202+
" f\"{OUTPUT_DIR}/palace.msh\",\n",
203+
" output=f\"{OUTPUT_DIR}/mesh.png\",\n",
204+
" show_groups=[\"metal\", \"P\"],\n",
205+
" interactive=False,\n",
206+
")\n",
195207
"\n",
196208
"# Interactive\n",
197209
"# plot_mesh_pv(f\"{OUTPUT_DIR}/palace.msh\", show_groups=['metal', 'P'], interactive=True)"
198210
]
199211
},
200212
{
201213
"cell_type": "markdown",
202-
"id": "8",
214+
"id": "9",
203215
"metadata": {},
204216
"source": [
205217
"### Upload the mesh and start the simulation job"
@@ -208,7 +220,7 @@
208220
{
209221
"cell_type": "code",
210222
"execution_count": null,
211-
"id": "9",
223+
"id": "10",
212224
"metadata": {},
213225
"outputs": [],
214226
"source": [
@@ -220,7 +232,7 @@
220232
{
221233
"cell_type": "code",
222234
"execution_count": null,
223-
"id": "10",
235+
"id": "11",
224236
"metadata": {},
225237
"outputs": [],
226238
"source": [
@@ -230,7 +242,7 @@
230242
{
231243
"cell_type": "code",
232244
"execution_count": null,
233-
"id": "11",
245+
"id": "12",
234246
"metadata": {},
235247
"outputs": [],
236248
"source": [
@@ -240,7 +252,7 @@
240252
{
241253
"cell_type": "code",
242254
"execution_count": null,
243-
"id": "12",
255+
"id": "13",
244256
"metadata": {},
245257
"outputs": [],
246258
"source": [
@@ -277,7 +289,7 @@
277289
{
278290
"cell_type": "code",
279291
"execution_count": null,
280-
"id": "13",
292+
"id": "14",
281293
"metadata": {},
282294
"outputs": [],
283295
"source": []

examples/palace_demo_microstrip.ipynb

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
18-
"from gdsfactoryplus import sim\n",
19-
"from sim_utils import plot_mesh_pv, print_job_summary, upload_simulation_dir\n",
20-
"\n",
21-
"\n",
22-
"# uv pip install \"gplugins[palace] @ git+https://github.com/gdsfactory/gplugins.git@palace-api\""
18+
"!uv pip install \"gplugins[palace] @ git+https://github.com/gdsfactory/gplugins.git@palace-api\""
2319
]
2420
},
2521
{
@@ -28,14 +24,25 @@
2824
"id": "2",
2925
"metadata": {},
3026
"outputs": [],
27+
"source": [
28+
"from gdsfactoryplus import sim\n",
29+
"from sim_utils import plot_mesh_pv, print_job_summary, upload_simulation_dir"
30+
]
31+
},
32+
{
33+
"cell_type": "code",
34+
"execution_count": null,
35+
"id": "3",
36+
"metadata": {},
37+
"outputs": [],
3138
"source": [
3239
"# === Configuration ===\n",
33-
"OUTPUT_DIR = \"./ihp_microstrip\""
40+
"OUTPUT_DIR = \"./palace-sim-microstrip\""
3441
]
3542
},
3643
{
3744
"cell_type": "markdown",
38-
"id": "3",
45+
"id": "4",
3946
"metadata": {},
4047
"source": [
4148
"### Load a pcell from IHP PDK"
@@ -44,7 +51,7 @@
4451
{
4552
"cell_type": "code",
4653
"execution_count": null,
47-
"id": "4",
54+
"id": "5",
4855
"metadata": {},
4956
"outputs": [],
5057
"source": [
@@ -71,7 +78,7 @@
7178
},
7279
{
7380
"cell_type": "markdown",
74-
"id": "5",
81+
"id": "6",
7582
"metadata": {},
7683
"source": [
7784
"### Generate the mesh"
@@ -80,7 +87,7 @@
8087
{
8188
"cell_type": "code",
8289
"execution_count": null,
83-
"id": "6",
90+
"id": "7",
8491
"metadata": {},
8592
"outputs": [],
8693
"source": [
@@ -112,20 +119,25 @@
112119
{
113120
"cell_type": "code",
114121
"execution_count": null,
115-
"id": "7",
122+
"id": "8",
116123
"metadata": {},
117124
"outputs": [],
118125
"source": [
119126
"# Static PNG\n",
120-
"plot_mesh_pv(f\"{OUTPUT_DIR}/palace.msh\", show_groups=[\"metal\", \"P\"], interactive=False)\n",
127+
"plot_mesh_pv(\n",
128+
" f\"{OUTPUT_DIR}/palace.msh\",\n",
129+
" output=f\"{OUTPUT_DIR}/mesh.png\",\n",
130+
" show_groups=[\"metal\", \"P\"],\n",
131+
" interactive=False,\n",
132+
")\n",
121133
"\n",
122134
"# Interactive\n",
123135
"# plot_mesh_pv(f\"{OUTPUT_DIR}/palace.msh\", show_groups=['metal', 'P'], interactive=True)"
124136
]
125137
},
126138
{
127139
"cell_type": "markdown",
128-
"id": "8",
140+
"id": "9",
129141
"metadata": {},
130142
"source": [
131143
"### Upload the mesh and start the simulation job"
@@ -134,7 +146,7 @@
134146
{
135147
"cell_type": "code",
136148
"execution_count": null,
137-
"id": "9",
149+
"id": "10",
138150
"metadata": {},
139151
"outputs": [],
140152
"source": [
@@ -146,7 +158,7 @@
146158
{
147159
"cell_type": "code",
148160
"execution_count": null,
149-
"id": "10",
161+
"id": "11",
150162
"metadata": {},
151163
"outputs": [],
152164
"source": [
@@ -156,7 +168,7 @@
156168
{
157169
"cell_type": "code",
158170
"execution_count": null,
159-
"id": "11",
171+
"id": "12",
160172
"metadata": {},
161173
"outputs": [],
162174
"source": [
@@ -166,7 +178,7 @@
166178
{
167179
"cell_type": "code",
168180
"execution_count": null,
169-
"id": "12",
181+
"id": "13",
170182
"metadata": {},
171183
"outputs": [],
172184
"source": [

0 commit comments

Comments
 (0)