File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 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
3339def 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
Original file line number Diff line number Diff line change 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"
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" ,
You can’t perform that action at this time.
0 commit comments