Skip to content

Commit 56490dd

Browse files
committed
feat: mapping file update
1 parent 03616b1 commit 56490dd

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

misc/check_misc_references.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
"history_file_path",
3030
]
3131

32+
# File name whitelist - these are output files that should be ignored
33+
WRITE_FILE_WHITELIST = [
34+
"my_medium.json",
35+
"inv_des_diamond_light_extractor.gds",
36+
]
37+
3238

3339
def get_project_root() -> Path:
3440
"""Get the project root directory (parent of misc)."""
@@ -107,6 +113,9 @@ def find_misc_references(notebook_path: Path) -> set[str]:
107113
# Skip files ending with _ (likely part of string concatenation)
108114
if filename.endswith("_"):
109115
continue
116+
# Skip files in the whitelist (known output files)
117+
if filename in WRITE_FILE_WHITELIST:
118+
continue
110119
# Skip if this is in a write method context (output file, not input)
111120
if is_write_context(content, match.start()):
112121
continue

misc/import_file_mapping.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@
7373
"wpd-part3-fem.csv"
7474
],
7575
"Fitting.ipynb": [
76-
"nk_data.csv",
77-
"my_medium.json"
76+
"nk_data.csv"
7877
],
7978
"FocusedApodGC.ipynb": [
8079
"Focusing_GC.gds"
@@ -155,9 +154,6 @@
155154
"prefab_base_sim.hdf5",
156155
"prefab_gc.gds"
157156
],
158-
"Autograd21GaPLightExtractor.ipynb": [
159-
"inv_des_diamond_light_extractor.gds"
160-
],
161157
"CMOSRGBSensor.ipynb": [
162158
"green_eps.csv",
163159
"blue_eps.csv",

0 commit comments

Comments
 (0)