Skip to content

Commit 1c9dd24

Browse files
committed
prep for 2.5.0rc2
1 parent 1e5d85e commit 1c9dd24

File tree

5 files changed

+625
-159
lines changed

5 files changed

+625
-159
lines changed

CHANGELOG.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ All notable changes to this project will be documented in this file.
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6-
## [Unreleased]
6+
## [2.5.0rc2] - 2023-10-30
77

88
### Added
99
- Support for multiple frequencies in `output_monitors` in `adjoint` plugin.
10-
- GDSII export functions to `Simulation`, `Structure`, and `Geometry`.
11-
- ``verbose`` argument to `estimate_cost` and `real_cost` functions such that the cost is logged if `verbose==True` (default). Additional helpful messages may also be logged.
12-
- Added support for space-time modulation of permittivity and electric conductivity via `ModulationSpec` class. The modulation function must be separable in space and time. Modulations with user-supplied distributions in space and harmonic modulation in time are supported.
13-
- `Geometry.intersections_tilted_plane` calculates intesections with any plane, not only axis-aligned ones.
14-
- `Transformed` class to support for geometry transformations.
10+
- GDSII export functions `to_gds_file`, `to_gds`, `to_gdspy`, and `to_gdstk` to `Simulation`, `Structure`, and `Geometry`.
11+
- `verbose` argument to `estimate_cost` and `real_cost` functions such that the cost is logged if `verbose==True` (default). Additional helpful messages may also be logged.
12+
- Support for space-time modulation of permittivity and electric conductivity via `ModulationSpec` class. The modulation function must be separable in space and time. Modulations with user-supplied distributions in space and harmonic modulation in time are supported.
13+
- `Geometry.intersections_tilted_plane` calculates intersections with any plane, not only axis-aligned ones.
14+
- `Transformed` class to support geometry transformations.
1515
- Methods `Geometry.translated`, `Geometry.scaled`, and `Geometry.rotated` can be used to create transformed copies of any geometry.
1616

1717
### Changed
18-
- Update versions of `boto3`, `requests`, and `click`.
18+
- Updated versions of `boto3`, `requests`, and `click`.
1919
- python 3.7 no longer tested nor supported.
20-
- Remove warning that monitors now have `colocate=True` by default.
20+
- Removed warning that monitors now have `colocate=True` by default.
2121
- If `PML` or any absorbing boundary condition is used along a direction where the `Simulation` size is zero, an error will be raised, rather than just a warning.
2222

2323
### Fixed
24-
- If no adjoint sources for one simulation in an objective function, make a mock source with zero amplitude and warn user.
24+
- If there are no adjoint sources for a simulation involved in an objective function, make a mock source with zero amplitude and warn user.
2525

2626
## [2.5.0rc1] - 2023-10-10
2727

@@ -1003,7 +1003,8 @@ which fields are to be projected is now determined automatically based on the me
10031003
- Job and Batch classes for better simulation handling (eventually to fully replace webapi functions).
10041004
- A large number of small improvements and bug fixes.
10051005

1006-
[Unreleased]: https://github.com/flexcompute/tidy3d/compare/v2.5.0rc1...pre/2.5
1006+
[Unreleased]: https://github.com/flexcompute/tidy3d/compare/v2.5.0rc2...pre/2.5
1007+
[2.5.0rc2]: https://github.com/flexcompute/tidy3d/compare/v2.5.0rc1...v2.5.0rc2
10071008
[2.5.0rc1]: https://github.com/flexcompute/tidy3d/compare/v2.4.2...v2.5.0rc1
10081009
[Unreleased]: https://github.com/flexcompute/tidy3d/compare/v2.4.3...develop
10091010
[2.4.3]: https://github.com/flexcompute/tidy3d/compare/v2.4.2...v2.4.3

tests/sims/simulation_2_5_0rc2.h5

0 Bytes
Binary file not shown.

tests/sims/simulation_2_5_0rc2.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
8.0,
1111
8.0
1212
],
13-
"run_time": 1e-12,
1413
"medium": {
1514
"name": null,
1615
"frequency_range": null,
@@ -22,11 +21,6 @@
2221
"permittivity": 1.0,
2322
"conductivity": 0.0
2423
},
25-
"symmetry": [
26-
0,
27-
0,
28-
0
29-
],
3024
"structures": [
3125
{
3226
"geometry": {
@@ -902,8 +896,14 @@
902896
}
903897
}
904898
],
899+
"symmetry": [
900+
0,
901+
0,
902+
0
903+
],
905904
"sources": [
906905
{
906+
"name": null,
907907
"type": "UniformCurrentSource",
908908
"center": [
909909
0.0,
@@ -924,11 +924,11 @@
924924
"offset": 5.0,
925925
"remove_dc_component": true
926926
},
927-
"name": null,
928927
"interpolate": true,
929928
"polarization": "Hx"
930929
},
931930
{
931+
"name": null,
932932
"type": "PointDipole",
933933
"center": [
934934
0.0,
@@ -949,11 +949,11 @@
949949
"offset": 5.0,
950950
"remove_dc_component": true
951951
},
952-
"name": null,
953952
"interpolate": true,
954953
"polarization": "Ex"
955954
},
956955
{
956+
"name": null,
957957
"type": "ModeSource",
958958
"center": [
959959
0.0,
@@ -974,7 +974,6 @@
974974
"offset": 5.0,
975975
"remove_dc_component": true
976976
},
977-
"name": null,
978977
"num_freqs": 1,
979978
"direction": "-",
980979
"mode_spec": {
@@ -997,6 +996,7 @@
997996
"mode_index": 0
998997
},
999998
{
999+
"name": null,
10001000
"type": "PlaneWave",
10011001
"center": [
10021002
0.0,
@@ -1017,13 +1017,13 @@
10171017
"offset": 5.0,
10181018
"remove_dc_component": true
10191019
},
1020-
"name": null,
10211020
"direction": "+",
10221021
"angle_theta": 0.0,
10231022
"angle_phi": 0.0,
10241023
"pol_angle": 0.1
10251024
},
10261025
{
1026+
"name": null,
10271027
"type": "GaussianBeam",
10281028
"center": [
10291029
0.0,
@@ -1044,7 +1044,6 @@
10441044
"offset": 5.0,
10451045
"remove_dc_component": true
10461046
},
1047-
"name": null,
10481047
"num_freqs": 1,
10491048
"direction": "+",
10501049
"angle_theta": 0.0,
@@ -1054,6 +1053,7 @@
10541053
"waist_distance": 0.0
10551054
},
10561055
{
1056+
"name": null,
10571057
"type": "AstigmaticGaussianBeam",
10581058
"center": [
10591059
0.0,
@@ -1074,7 +1074,6 @@
10741074
"offset": 5.0,
10751075
"remove_dc_component": true
10761076
},
1077-
"name": null,
10781077
"num_freqs": 1,
10791078
"direction": "+",
10801079
"angle_theta": 0.0,
@@ -1090,6 +1089,7 @@
10901089
]
10911090
},
10921091
{
1092+
"name": null,
10931093
"type": "CustomFieldSource",
10941094
"center": [
10951095
0.0,
@@ -1110,7 +1110,6 @@
11101110
"offset": 5.0,
11111111
"remove_dc_component": true
11121112
},
1113-
"name": null,
11141113
"field_dataset": {
11151114
"type": "FieldDataset",
11161115
"Ex": "ScalarFieldDataArray",
@@ -1122,6 +1121,7 @@
11221121
}
11231122
},
11241123
{
1124+
"name": null,
11251125
"type": "CustomCurrentSource",
11261126
"center": [
11271127
0.0,
@@ -1142,7 +1142,6 @@
11421142
"offset": 5.0,
11431143
"remove_dc_component": true
11441144
},
1145-
"name": null,
11461145
"interpolate": true,
11471146
"current_dataset": {
11481147
"type": "FieldDataset",
@@ -1155,6 +1154,7 @@
11551154
}
11561155
},
11571156
{
1157+
"name": null,
11581158
"type": "TFSF",
11591159
"center": [
11601160
1.0,
@@ -1175,14 +1175,14 @@
11751175
"offset": 5.0,
11761176
"remove_dc_component": true
11771177
},
1178-
"name": null,
11791178
"direction": "+",
11801179
"angle_theta": 0.5235987755982988,
11811180
"angle_phi": 0.6283185307179586,
11821181
"pol_angle": 0.0,
11831182
"injection_axis": 2
11841183
},
11851184
{
1185+
"name": null,
11861186
"type": "UniformCurrentSource",
11871187
"center": [
11881188
0.0,
@@ -1206,7 +1206,6 @@
12061206
"values": "TimeDataArray"
12071207
}
12081208
},
1209-
"name": null,
12101209
"interpolate": true,
12111210
"polarization": "Hx"
12121211
}
@@ -2091,9 +2090,10 @@
20912090
],
20922091
"type": "GridSpec"
20932092
},
2093+
"version": "2.5.0rc2",
2094+
"run_time": 1e-12,
20942095
"shutoff": 0.0001,
20952096
"subpixel": false,
20962097
"normalize_index": 0,
2097-
"courant": 0.8,
2098-
"version": "2.5.0rc2"
2098+
"courant": 0.8
20992099
}

tidy3d/components/geometry/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2189,7 +2189,7 @@ class Transformed(Geometry):
21892189
)
21902190

21912191
transform: MatrixReal4x4 = pydantic.Field(
2192-
np.eye(4),
2192+
np.eye(4).tolist(),
21932193
title="Transform",
21942194
description="Transform matrix applied to the base geometry.",
21952195
)

0 commit comments

Comments
 (0)