Skip to content

Commit 05e33a3

Browse files
committed
Merge branch 'develop' into pre/2.7
2 parents b59c8e7 + 2f1f7a9 commit 05e33a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+918
-607
lines changed

.github/workflows/run_tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ name: "tidy3d-frontend-tests"
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [ develop ]
6+
branches: [ develop, latest ]
77
pull_request:
88
branches:
9+
- latest
910
- develop
1011
- 'pre/*'
1112

@@ -143,4 +144,4 @@ jobs:
143144
poetry run black . --check --diff
144145
poetry run ruff check tidy3d --fix --exit-non-zero-on-fix
145146
poetry run pytest -rA tests
146-
poetry run pytest -rA tests/test_data/_test_datasets_no_vtk.py
147+
poetry run pytest -rA tests/_test_data/_test_datasets_no_vtk.py

.github/workflows/test_develop_cli.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test-develop-cli
1+
name: "test-develop-cli"
22

33
on:
44
workflow_dispatch:
@@ -7,7 +7,6 @@ on:
77
types:
88
- completed
99

10-
1110
jobs:
1211
test-dev-commands:
1312
strategy:

CHANGELOG.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55

66
## [Unreleased]
77

8+
## [2.6.1] - 2024-03-07
9+
810
### Added
911
- `Simulation` now accepts `LumpedElementType`, which currently only supports the `LumpedResistor` type. `LumpedPort` together with `LumpedResistor` make up the new `TerminalComponentModeler` in the `smatrix` plugin.
1012
- Uniaxial medium Lithium niobate to material library.
@@ -15,16 +17,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1517

1618
### Fixed
1719
- `tidy3d.plugins.design.Results` store the `BatchData` for batch runs in the `.batch_data` field.
20+
- Prompting user to check solver log when loading solver data if warnings were found in the log, or if the simulation diverged or errored.
1821

1922
### Changed
23+
- Slightly reorganized `web.run` logging when `verbose=True` to make it clearer.
2024

2125
### Fixed
2226
- Fix to 3D surface integration monitors with some surfaces completely outside of the simulation domain which would sometimes still record fields.
2327
- Better error handling if remote `ModeSolver` creation gives response of `None`.
2428
- Validates that certain incompatible material types do not have intersecting bounds.
2529
- Fixed handling of the `frequency` argument in PEC medium.
26-
27-
## [2.6.0] - 2024-01-21
30+
- Corrected plotting cmap if `val='re'` passed to `SimulationData.plot_field`.
31+
- Bug when converting point `FieldMonitor` data to scalar amplitude for adjoint source in later jax versions.
32+
- Handle special case when vertices overlap in `JaxPolySlab` to give 0 grad contribution from edge.
33+
- Corrected some mistakes in the estimation of the solver data size for each monitor type, which affects the restrictions on the maximum monitor size that can be submitted.
34+
- Bug in visualizing a slanted cylinder along certain axes in 2D.
35+
- Bug in `ModeSolver.reduced_simulation_copy` that was causing mode profiles to be all `NaN`.
36+
- Bug in `Simulation.subsection()` that was causing zero-size dimensions not to be preserved.
37+
- Bug in `CustomGrid` that was causing an error when using for zero-size dimensions.
38+
- When downloading gzip-ed solver data, automatically create the parent folder of the `to_file` path if it does not exist.
39+
40+
## [2.6.0] - 2024-02-21
2841

2942
### Added
3043
- Automatic subdivision of 2D materials with inhomogeneous substrate/superstrate.
@@ -1119,6 +1132,8 @@ which fields are to be projected is now determined automatically based on the me
11191132
- A large number of small improvements and bug fixes.
11201133

11211134
[Unreleased]: https://github.com/flexcompute/tidy3d/compare/v2.6.0...pre/2.7
1135+
[Unreleased]: https://github.com/flexcompute/tidy3d/compare/v2.6.1...develop
1136+
[2.6.1]: https://github.com/flexcompute/tidy3d/compare/v2.6.0...v2.6.1
11221137
[2.6.0]: https://github.com/flexcompute/tidy3d/compare/v2.5.2...v2.6.0
11231138
[2.5.2]: https://github.com/flexcompute/tidy3d/compare/v2.5.1...v2.5.2
11241139
[2.5.1]: https://github.com/flexcompute/tidy3d/compare/v2.5.0...v2.5.1

docs/_static/logo.ico

-3.28 KB
Binary file not shown.

docs/_templates/module.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@
3333
{% endif %}
3434
{%- endfor %}
3535
{% endif %}
36-
{% endblock %}
36+
{% endblock %}
37+
38+
39+
.. rubric:: Inherited Common Usage
40+
41+
.. include:: ../_custom_autosummary/{{ fullname }}.rst
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.. autosummary::
2+
:recursive:
3+
:toctree: ../_autosummary/
4+
5+
tidy3d.components.base.Tidy3dBaseModel.from_file

docs/api/abstract_models.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ These are some classes that are used to organize the tidy3d components, but aren
4242
tidy3d.components.monitor.AbstractFieldProjectionMonitor
4343
tidy3d.components.lumped_element.LumpedElement
4444
tidy3d.components.grid.grid_spec.GridSpec1d
45+
tidy3d.components.data.sim_data.SimulationData
4546
tidy3d.components.data.data_array.DataArray
4647
tidy3d.components.data.monitor_data.MonitorData
4748
tidy3d.components.data.monitor_data.AbstractFieldProjectionData

docs/conf.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
autodoc_default_options = {
6565
"members": True,
6666
"member-order": "bysource",
67-
"special-members": "__init__",
6867
"undoc-members": True,
6968
}
7069
autodoc_typehints = "none"
@@ -94,6 +93,7 @@
9493
"sphinx.ext.todo",
9594
"sphinx.ext.viewcode", # Add a link to the Python source code for classes, functions etc.
9695
"sphinx_copybutton",
96+
"sphinx_favicon",
9797
"sphinx_sitemap",
9898
"sphinx_tabs.tabs",
9999
"sphinxemoji.sphinxemoji",
@@ -102,6 +102,12 @@
102102
"custom-robots", # In _ext, these need to be at the end of the extensions list
103103
]
104104
extlinks = {}
105+
favicons = [
106+
{
107+
"sizes": "16x16",
108+
"href": "logo.svg",
109+
}
110+
]
105111
# Grouping the document tree into LaTeX files. List of tuples
106112
# (source start file, target name, title, author, documentclass
107113
# [howto, manual, or own class]).
@@ -114,7 +120,6 @@
114120
"css/custom.css",
115121
]
116122
html_extra_path = ["./_static/robots.txt", "./_static/"]
117-
html_favicon = "_static/logo.ico"
118123
html_js_files = ["js/custom-download.js"]
119124
htmlhelp_basename = "tidy3ddoc"
120125
html_show_sourcelink = True # Remove 'view source code' from top of page (for html, not python)
@@ -217,6 +222,7 @@
217222
\usepackage{cmap}
218223
"""
219224
}
225+
220226
# latex_elements: dict = {
221227
# # "preamble": r"\usepackage{bm}\n\usepackage{amssymb}\n\usepackage{esint}",
222228
# # The paper size ('letterpaper' or 'a4paper').

docs/draw_package.py

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

docs/faq

Submodule faq updated 33 files

0 commit comments

Comments
 (0)