Skip to content

Commit 4ceb54f

Browse files
committed
2.2: schema, changelog, run black
1 parent ed9b98e commit 4ceb54f

File tree

3 files changed

+199
-96
lines changed

3 files changed

+199
-96
lines changed

CHANGELOG.md

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

88
### Added
9-
- `web.test()` to simply test if the authentication is configured correctly and raise exception otherwise.
10-
- Add `SimulationTask.get_running_tasks()` to get a list of running tasks from the server.
11-
- Argument `scale` to `ModeSolver.plot_field` to control plot scaling.
12-
- Retry for set number of seconds in web functions if internet connection error.
9+
10+
### Changed
11+
12+
### Fixed
13+
14+
## [2.2.0] - 2023-5-22
15+
16+
### Added
17+
- Fully anisotropic medium class (`FullyAnisotropicMedium`) that allows to simulate materials with permittivity and conductivity tensors oriented arbitrary with respect to simulation grid.
1318
- Adjoint processing is done server side by default, to avoid unnecessary downloading of data.
14-
- `run_local` and `run_async_local` options in `tidy3d.plugins.adjoint.web` to provide way to run adjoint processing locally.
1519
- `JaxPolySlab` in `adjoint` plugin, which can track derivatives through its `.vertices`.
16-
- Fully anisotropic medium class (`FullyAnisotropicMedium`) that allows to simulate materials with permittivity and conductivity tensors oriented arbitrary with respect to simulation grid.
20+
- `run_local` and `run_async_local` options in `tidy3d.plugins.adjoint.web` to provide way to run adjoint processing locally.
21+
- `web.test()` to simply test if the authentication is configured correctly and raise exception otherwise.
22+
- `SimulationTask.get_running_tasks()` to get a list of running tasks from the server.
23+
- Retry for set number of seconds in web functions if internet connection errors.
24+
- Argument `scale` to `ModeSolver.plot_field` to control plot scaling.
25+
1726

1827
### Changed
1928
- Perfect electric conductors (PECs) are now modeled as high-conductivity media in both the frontend and backend mode solvers, and their presence triggers the use of a preconditioner to improve numerical stability and robustness. Consequently, the mode solver provides more accurate eigenvectors and field distributions when PEC structures are present.
2029
- Include source amplitude in `amp_time`.
2130
- Increased the maximum allowed estimated simulation data storage to 50GB. Individual monitors with projected data larger than 10GB will trigger a warning.
22-
- `PolySlab.inside` now uses `matplotlib.path.contains_points`.
23-
- `JaxCustomMedium` accepts a maximum of 250,000 grid cells.
31+
- `PolySlab.inside` now uses `matplotlib.path.contains_points` for better performance.
32+
- `JaxCustomMedium` accepts a maximum of 250,000 grid cells to avoid slow server-side processing.
2433

2534
### Fixed
2635
- Log messages provide the correct caller origin (file name and line number).

tests/test_web/test_tidy3d_task.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,16 @@ def test_submit(set_api_key):
176176
responses.add(
177177
responses.POST,
178178
f"{Env.current.web_api_endpoint}/tidy3d/projects/1234/tasks",
179-
match=[matchers.json_params_matcher({
180-
"taskName": "test task",
181-
"call_back_url": None,
182-
"simulationType": "tidy3d",
183-
"parentTasks": None,
184-
})],
179+
match=[
180+
matchers.json_params_matcher(
181+
{
182+
"taskName": "test task",
183+
"call_back_url": None,
184+
"simulationType": "tidy3d",
185+
"parentTasks": None,
186+
}
187+
)
188+
],
185189
json={
186190
"data": {
187191
"taskId": "1234",

0 commit comments

Comments
 (0)