Skip to content

Commit

Permalink
Updates pre 2.7.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
momchil-flex committed Sep 12, 2024
1 parent 4099ed0 commit 6f86b80
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 17 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.7.3] - 2024-09-12

### Added
- Added value_and_grad function to the autograd plugin, importable via `from tidy3d.plugins.autograd import value_and_grad`. Supports differentiating functions with auxiliary data (`value_and_grad(f, has_aux=True)`).
- `Simulation.num_computational_grid_points` property to examine the number of grid cells that compose the computational domain corresponding to the simulation. This can differ from `Simulation.num_cells` based on boundary conditions and symmetries.
Expand All @@ -26,7 +28,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improve accuracy in `Box` shifting boundary gradients.
- Improve accuracy in `FieldData` operations involving H fields (like `.flux`).
- Better error and warning handling in autograd pipeline.
- Added the option to specify the `num_freqs` argument and `kwargs` to the `.to_source` method for both `ModeSolver` and `ComponentModeler`.
- Added the option to specify the `num_freqs` argument and `kwargs` to the `.to_source` method for both `ModeSolver` and `ComponentModeler`.
- Fixes to TFSF source in some 2D simulations, and in some cases when the injection plane is close to the simulation domain boundaries

## [2.7.2] - 2024-08-07

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

[Unreleased]: https://github.com/flexcompute/tidy3d/compare/v2.7.2...develop
[Unreleased]: https://github.com/flexcompute/tidy3d/compare/v2.7.3...develop
[2.7.3]: https://github.com/flexcompute/tidy3d/compare/v2.7.2...v2.7.3
[2.7.2]: https://github.com/flexcompute/tidy3d/compare/v2.7.1...v2.7.2
[2.7.1]: https://github.com/flexcompute/tidy3d/compare/v2.7.0...v2.7.1
[2.7.0]: https://github.com/flexcompute/tidy3d/compare/v2.6.4...v2.7.0
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tidy3d"
version = "2.7.2"
version = "2.7.3"
description = "A fast FDTD solver"
authors = ["Tyler Hughes <[email protected]>"]
license = "LGPLv2+"
Expand Down Expand Up @@ -260,7 +260,7 @@ testpaths = ["tidy3d", "tests", "docs"]
python_files = "*.py"

[tool.bumpversion]
current_version = "2.7.2"
current_version = "2.7.3"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
Expand Down
Binary file modified tests/sims/simulation_sample.h5
Binary file not shown.
33 changes: 32 additions & 1 deletion tests/sims/simulation_sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,37 @@
"conductivity": 0.0
},
"structures": [
{
"attrs": {},
"geometry": {
"attrs": {},
"type": "Cylinder",
"axis": 2,
"sidewall_angle": 0.0,
"reference_plane": "middle",
"radius": 1.0,
"center": [
-1.0,
0.0,
0.0
],
"length": 1.0
},
"name": "traced_dieletric_cylinder",
"type": "Structure",
"medium": {
"attrs": {},
"name": "dieletric",
"frequency_range": null,
"allow_gain": false,
"nonlinear_spec": null,
"modulation_spec": null,
"heat_spec": null,
"type": "Medium",
"permittivity": 2.0,
"conductivity": 0.0
}
},
{
"attrs": {},
"geometry": {
Expand Down Expand Up @@ -2794,7 +2825,7 @@
"snapping_points": [],
"type": "GridSpec"
},
"version": "2.7.2",
"version": "2.7.3",
"lumped_elements": [],
"subpixel": false,
"simulation_type": null,
Expand Down
26 changes: 17 additions & 9 deletions tidy3d/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tidy3d/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""DO NOT EDIT: Modified automatically with .bump2version.cfg"""

__version__ = "2.7.2"
__version__ = "2.7.3"

0 comments on commit 6f86b80

Please sign in to comment.