Skip to content

Commit

Permalink
Testing notebooks for 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
momchil-flex committed Dec 17, 2024
1 parent 1b6d016 commit c4d43c8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/notebooks
Submodule notebooks updated 191 files
29 changes: 26 additions & 3 deletions tests/_test_notebooks/full_test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@

ep = ExecutePreprocessor(timeout=3000, kernel_name="python3")

# Optionally read a list of notebooks that have already been ran
notebooks_ran = ""
# with open("notebooks_run_2.8.0rc1.txt") as fhandle:
# notebooks_ran = fhandle.read()

# get all notebook files
NOTEBOOK_DIR = "docs/notebooks/"
notebook_filenames_all = [
NOTEBOOK_DIR + f
for f in os.listdir(NOTEBOOK_DIR)
if ".ipynb" in f and f != ".ipynb_checkpoints"
if ".ipynb" in f and f != ".ipynb_checkpoints" and f.split("/")[-1] not in notebooks_ran
]

# sort alphabetically
Expand All @@ -26,13 +31,13 @@
notebook_base = path.split("/")[-1]
print(f"'{notebook_base[:-6]}',")


# if you want to run only some notebooks, put here, if empty, run all
run_only = []

skip = [
# WIP
"Autograd10YBranchLevelSet",
"Autograd13Metasurface",
# long time (excluding most adjoint)
"8ChannelDemultiplexer",
"90BendPolarizationSplitterRotator",
Expand All @@ -42,6 +47,8 @@
"ParticleSwarmOptimizedPBS",
# hang by default
"AdjointPlugin14PreFab.ipynb",
"Autograd23FabricationAwareInvdes",
"SimpleModeSolverGUI",
"WaveguideBendSimulator",
]

Expand All @@ -56,7 +63,7 @@
notebook_filenames.append(fname)

"""
as of Sept 04 2024
as of Dec 12 2024
'8ChannelDemultiplexer',
'90BendPolarizationSplitterRotator',
'90OpticalHybrid',
Expand All @@ -82,10 +89,19 @@
'AntiResonantHollowCoreFiber',
'AutoGrid',
'Autograd0Quickstart',
'Autograd10YBranchLevelSet',
'Autograd12LightExtractor',
'Autograd13Metasurface',
'Autograd15Antenna',
'Autograd16BilayerCoupler',
'Autograd17BandPassFilter',
'Autograd18TopologyBend',
'Autograd19ApodizedCoupler',
'Autograd1Intro',
'Autograd20MetalensWaveguideTaper',
'Autograd21GaPLightExtractor',
'Autograd22PhotonicCrystal',
'Autograd23FabricationAwareInvdes',
'Autograd2GradientChecking',
'Autograd3InverseDesign',
'Autograd4MultiObjective',
Expand All @@ -96,13 +112,15 @@
'Autograd9WDM',
'Bandstructure',
'BatchModeSolver',
'BayesianOptimizationYJunction',
'BilayerSiNEdgeCoupler',
'BilevelPSR',
'BiosensorGrating',
'BistablePCCavity',
'BoundaryConditions',
'BraggGratings',
'BroadbandDirectionalCoupler',
'BroadbandPlaneWaveWithConstantObliqueIncidentAngle',
'BullseyeCavityPSO',
'CMOSRGBSensor',
'CavityFOM',
Expand Down Expand Up @@ -141,7 +159,9 @@
'HighQSi',
'IntegratedVivaldiAntenna',
'InverseDesign',
'KerrSidebands',
'LNOIPolarizationSplitterRotator',
'LinearLumpedElements',
'MIMResonator',
'MMI1x4',
'MachZehnderModulator',
Expand All @@ -155,6 +175,7 @@
'ModeSolver',
'ModesBentAngled',
'MultiplexingMMI',
'MultipoleExpansion',
'NanobeamCavity',
'NanostructuredBoronNitride',
'Near2FarSphereRCS',
Expand All @@ -174,6 +195,7 @@
'PolarizationSplitterRotator',
'Primer',
'RadiativeCoolingGlass',
'RadiativeLossesModeSolver',
'ResonanceFinder',
'RingResonator',
'SMatrix',
Expand All @@ -182,6 +204,7 @@
'SbendCMAES',
'ScaleInvariantWaveguide',
'SelfIntersectingPolyslab',
'SimpleModeSolverGUI',
'Simulation',
'StartHere',
'StripToSlotConverters',
Expand Down

0 comments on commit c4d43c8

Please sign in to comment.