Skip to content

Commit c6bfb0e

Browse files
remove: adjoint plugin
1 parent e51c379 commit c6bfb0e

27 files changed

+971
-9686
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
### Changed
1818
- `LayerRefinementSpec` defaults to assuming structures made of different materials are interior-disjoint for more efficient mesh generation.
19+
- Removal of the Adjoint plugin.
1920

2021
### Fixed
2122
- Stricter validation for `bend_radius` in mode simulations, preventing the bend center from coinciding with the simulation boundary.

docs/api/plugins/adjoint.rst

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/api/plugins/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Plugins
1010
smatrix
1111
resonance
1212
autograd
13-
adjoint
1413
invdes
1514
design
1615
waveguide

docs/notebooks

Submodule notebooks updated 47 files

poetry.lock

Lines changed: 968 additions & 782 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,6 @@ diff-cover = { version = "*", optional = true }
7070
# gdstk
7171
gdstk = { version = ">=0.9.49", optional = true }
7272

73-
# jax
74-
jaxlib = { version = ">=0.4.26", source = "jaxsource", optional = true }
75-
jax = { version = ">=0.4.26", extras = [
76-
"cpu",
77-
], source = "jaxsource", optional = true }
78-
7973
# design
8074
bayesian-optimization = { version = "<2", optional = true }
8175
pygad = { version = "3.3.1", optional = true }
@@ -135,8 +129,6 @@ dev = [
135129
'grcwa',
136130
'ipython',
137131
'ipython',
138-
'jax',
139-
'jaxlib',
140132
'torch',
141133
'jinja2',
142134
'jupyter',
@@ -218,7 +210,6 @@ vtk = ["vtk"]
218210
ruff = ["ruff"]
219211
heatcharge = ["trimesh", "vtk", "devsim"]
220212
# plugins with extra deps
221-
adjoint = ["jaxlib", "jax"]
222213
pytorch = ["torch"]
223214
design = ["bayesian-optimization", "pygad", "pyswarms"]
224215
# extras = ["tidy3d-extras"]
@@ -231,12 +222,6 @@ name = "pypi"
231222
priority = "primary"
232223

233224

234-
[[tool.poetry.source]]
235-
name = "jaxsource"
236-
url = "https://storage.googleapis.com/jax-releases/jax_releases.html"
237-
priority = "supplemental"
238-
239-
240225
[[tool.poetry.source]]
241226
name = "torch-cpu"
242227
url = "https://download.pytorch.org/whl/cpu"
@@ -306,7 +291,7 @@ banned-module-level-imports = ["scipy", "matplotlib"]
306291

307292
[tool.pytest.ini_options]
308293
# TODO: remove --assert=plain when https://github.com/scipy/scipy/issues/22236 is resolved
309-
addopts = "--cov=tidy3d --doctest-modules -n auto --dist worksteal --assert=plain -m 'not numerical' --ignore=tests/test_plugins/test_adjoint.py"
294+
addopts = "--cov=tidy3d --doctest-modules -n auto --dist worksteal --assert=plain -m 'not numerical'"
310295
markers = [
311296
"numerical: marks numerical tests for adjoint gradients that require running simulations (deselect with '-m \"not numerical\"')",
312297
]

tests/_test_local/_test_adjoint_performance.py

Lines changed: 0 additions & 264 deletions
This file was deleted.

0 commit comments

Comments
 (0)