Skip to content

Commit e8663e6

Browse files
fix(rf): Default value of angle_threshold in CornerFinderSpec is now 0.25pi
1 parent 1d713a6 commit e8663e6

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3131
- Added multimode support to `WavePort` in the smatrix plugin, allowing multiple modes to be analyzed per port.
3232

3333
### Breaking Changes
34+
- Edge singularity correction at PEC and lossy metal edges defaults to `True`.
35+
- `angle_threshold` in `CornerFinderSpec` now defaults to `pi/4`.
3436
**Note: These breaking changes only affect the microwave and smatrix plugins.**
3537
- Renamed path integral classes for improved consistency. Please see our migration guide for details on updating your code.
3638
- `VoltageIntegralAxisAligned``AxisAlignedVoltageIntegral`
@@ -51,7 +53,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5153
- Unified run submission API: `web.run(...)` is now a container-aware wrapper that accepts a single simulation or arbitrarily nested containers (`list`, `tuple`, `dict` values) and returns results in the same shape.
5254
- `web.Batch(ComponentModeler)` and `web.Job(ComponentModeler)` native support
5355
- Simulation data of batch jobs are now automatically downloaded upon their individual completion in `Batch.run()`, avoiding waiting for the entire batch to reach completion.
54-
- Edge singularity correction at PEC and lossy metal edges defaults to `True`.
5556

5657
### Fixed
5758
- Ensured the legacy `Env` proxy mirrors `config.web` profile switches and preserves API URL.

schemas/EMESimulation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,7 +2316,7 @@
23162316
"additionalProperties": false,
23172317
"properties": {
23182318
"angle_threshold": {
2319-
"default": 0.3141592653589793,
2319+
"default": 0.7853981633974483,
23202320
"exclusiveMaximum": 3.141592653589793,
23212321
"minimum": 0,
23222322
"type": "number"
@@ -6361,7 +6361,7 @@
63616361
}
63626362
],
63636363
"default": {
6364-
"angle_threshold": 0.3141592653589793,
6364+
"angle_threshold": 0.7853981633974483,
63656365
"attrs": {},
63666366
"concave_resolution": null,
63676367
"convex_resolution": null,

schemas/ModeSimulation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2359,7 +2359,7 @@
23592359
"additionalProperties": false,
23602360
"properties": {
23612361
"angle_threshold": {
2362-
"default": 0.3141592653589793,
2362+
"default": 0.7853981633974483,
23632363
"exclusiveMaximum": 3.141592653589793,
23642364
"minimum": 0,
23652365
"type": "number"
@@ -5574,7 +5574,7 @@
55745574
}
55755575
],
55765576
"default": {
5577-
"angle_threshold": 0.3141592653589793,
5577+
"angle_threshold": 0.7853981633974483,
55785578
"attrs": {},
55795579
"concave_resolution": null,
55805580
"convex_resolution": null,

schemas/Simulation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2736,7 +2736,7 @@
27362736
"additionalProperties": false,
27372737
"properties": {
27382738
"angle_threshold": {
2739-
"default": 0.3141592653589793,
2739+
"default": 0.7853981633974483,
27402740
"exclusiveMaximum": 3.141592653589793,
27412741
"minimum": 0,
27422742
"type": "number"
@@ -9061,7 +9061,7 @@
90619061
}
90629062
],
90639063
"default": {
9064-
"angle_threshold": 0.3141592653589793,
9064+
"angle_threshold": 0.7853981633974483,
90659065
"attrs": {},
90669066
"concave_resolution": null,
90679067
"convex_resolution": null,

schemas/TerminalComponentModeler.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2840,7 +2840,7 @@
28402840
"additionalProperties": false,
28412841
"properties": {
28422842
"angle_threshold": {
2843-
"default": 0.3141592653589793,
2843+
"default": 0.7853981633974483,
28442844
"exclusiveMaximum": 3.141592653589793,
28452845
"minimum": 0,
28462846
"type": "number"
@@ -9228,7 +9228,7 @@
92289228
}
92299229
],
92309230
"default": {
9231-
"angle_threshold": 0.3141592653589793,
9231+
"angle_threshold": 0.7853981633974483,
92329232
"attrs": {},
92339233
"concave_resolution": null,
92349234
"convex_resolution": null,

tidy3d/components/grid/corner_finder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from tidy3d.components.types import ArrayFloat1D, ArrayFloat2D, Axis, Shapely
1616
from tidy3d.constants import inf
1717

18-
CORNER_ANGLE_THRESOLD = 0.1 * np.pi
18+
CORNER_ANGLE_THRESOLD = 0.25 * np.pi
1919

2020

2121
class CornerFinderSpec(Tidy3dBaseModel):

0 commit comments

Comments
 (0)