Skip to content

Hotfix/v2.9 #2729

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
- Validate mode solver object for large number of grid points on the modal plane.

### Fixed
- Fixed missing amplitude factor and handling of negative normal direction case when making adjoint sources from `DiffractionMonitor`.
- Improved the robustness of batch jobs. The batch state, including all `task_ids`, is now saved to `batch.hdf5` immediately after upload. This fixes an issue where an interrupted batch (e.g., due to a kernel crash or network loss) would be unrecoverable.
- Fixed warning for running symmetric adjoint simulations by port to not trigger when there is a single port.
- Bug in `CoaxialLumpedPort` where source injection is off when the `normal_axis` is not `z`.

## [2.9.0] - 2025-08-04

### Added
Expand Down
4 changes: 3 additions & 1 deletion docs/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ API |:computer:|
output_data
scene
logging
utilities
submit_simulations
mesh/index
heat/index
Expand All @@ -37,6 +38,7 @@ API |:computer:|
viz

.. include:: /api/simulation.rst
.. include:: /api/utilities.rst
.. include:: /api/boundary_conditions.rst
.. include:: /api/geometry.rst
.. include:: /api/mediums.rst
Expand All @@ -62,4 +64,4 @@ API |:computer:|
.. include:: /api/constants.rst
.. include:: /api/abstract_base.rst
.. include:: /api/abstract_models.rst
.. include:: /api/viz.rst
.. include:: /api/viz.rst
1 change: 0 additions & 1 deletion docs/api/simulation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ Simulation
:template: module.rst

tidy3d.Simulation
tidy3d.RunTimeSpec
14 changes: 14 additions & 0 deletions docs/api/utilities.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.. currentmodule:: tidy3d

Utilities
=========

.. autosummary::
:toctree: _autosummary/
:template: module.rst

tidy3d.RunTimeSpec
tidy3d.FreqRange
tidy3d.FrequencyUtils
tidy3d.frequencies
tidy3d.wavelengths
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def eval_fn(sim_data):
fd_mag = np.linalg.norm(fd_grad)
adj_mag = np.linalg.norm(pattern_dot_adj_gradient)
percentage_error = 100.0 * np.mean(
(fd_grad - pattern_dot_adj_gradient) / (fd_grad + np.finfo(np.float64).eps)
np.abs(fd_grad - pattern_dot_adj_gradient) / (np.abs(fd_grad) + np.finfo(np.float64).eps)
)

print("\n" * 3)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_components/test_autograd_numerical.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def test_finite_difference_field_data(field_data_test_parameters, rng, tmp_path,
fd_mag = np.linalg.norm(fd_grad)
adj_mag = np.linalg.norm(pattern_dot_adj_gradient)
percentage_error = 100.0 * np.mean(
(fd_grad - pattern_dot_adj_gradient) / (fd_grad + np.finfo(np.float64).eps)
np.abs(fd_grad - pattern_dot_adj_gradient) / (np.abs(fd_grad) + np.finfo(np.float64).eps)
)

print("\n" * 3)
Expand Down
Loading
Loading