Skip to content

Commit

Permalink
Merge branch develop into pre/2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
yaugenst-flex authored and momchil-flex committed Jul 23, 2024
1 parent 87f1b43 commit 93aec55
Show file tree
Hide file tree
Showing 51 changed files with 1,963 additions and 62,709 deletions.
34 changes: 8 additions & 26 deletions .github/workflows/sync-to-readthedocs-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- latest
- develop
- 'pre/*'
- 'production/test/*'
- 'demo/test/*'
tags:
- 'v*'
- 'demo/*'
Expand All @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Conditional Checkout for Branch
- name: Checkout Branch
- name: Checkout Branch if branch-triggered-sync
if: contains(github.ref, 'refs/heads/')
uses: actions/checkout@v3
with:
Expand All @@ -43,7 +43,7 @@ jobs:
ref: ${{ needs.extract_branch_or_tag.outputs.ref_name }}

# Conditional Checkout for Tag
- name: Checkout Tag
- name: Checkout Tag if tag-triggered-sync
if: contains(github.ref, 'refs/tags/')
uses: actions/checkout@v3
with:
Expand All @@ -53,27 +53,9 @@ jobs:
ref: ${{ needs.extract_branch_or_tag.outputs.ref_name }}
fetch-tags: true

- name: Create new branch or tag
uses: GuillaumeFalourd/[email protected]
if: contains(github.ref, 'refs/heads/')
with:
repository_owner: flexcompute-readthedocs
repository_name: tidy3d-docs
new_branch_name: ${{ needs.extract_branch_or_tag.outputs.ref_name }}
access_token: ${{ secrets.GH_PAT }}
new_branch_ref: default_clean_sync_branch
ignore_branch_exists: true

- name: Tag and push
if: contains(github.ref, 'refs/tags/')
- name: Push corresponding reference to mirror repo
run: |
git push --force --tags https://${{ secrets.GH_PAT }}@github.com/flexcompute-readthedocs/tidy3d-docs.git
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .
token: ${{ secrets.GH_PAT }}
repository-name: flexcompute-readthedocs/tidy3d-docs
target-folder: .
branch: ${{ needs.extract_branch_or_tag.outputs.ref_name }}
force: true
git remote add mirror https://github.com/flexcompute-readthedocs/tidy3d-docs.git
git push mirror ${{ needs.extract_branch_or_tag.outputs.ref_name }} --force # overwrites always
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39 changes: 35 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [2.8.0rc1]

### Added
- Support for differentiation with respect to `GeometryGroup.geometries` elements.
- Support for differentiation with respect to `ComplexPolySlab.vertices`.
- Users can now export `SimulationData` to MATLAB `.mat` files with the `to_mat_file` method.
- Introduce RF material library. Users can now export `rf_material_library` from `tidy3d.plugins.microwave`.
- Users can specify the background medium for a structure in automatic differentiation by supplying `Structure.autograd_background_permittivity`.
- `DirectivityMonitor` to compute antenna directivity.
Expand All @@ -20,10 +18,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

### Fixed
- Bug where boundary layers would be plotted too small in 2D simulations.
- Significant speedup for field projection computations.
- Fix numerical precision issue in `FieldProjectionCartesianMonitor`.

## [2.7.2]

### Added
- Mode solver plugin now supports 'EMESimulation'.
- TriangleMesh class: automatic removal of zero-area faces, and functions fill_holes and fix_winding to attempt mesh repair.

### Changed
- Error if field projection monitors found in 2D simulations, except `FieldProjectionAngleMonitor` with `far_field_approx = True`. Support for other monitors and for exact field projection will be coming in a subsequent Tidy3D version.

### Fixed
- Error when loading a previously run Batch or ComponentModeler containing custom data.
- Error when plotting mode plane PML and the simulation has symmetry.
- Validators using TriangleMesh.intersections_plane will fall back on bounding box in case the method fails for a non-watertight mesh.


## [2.7.1]

### Added
- Support for differentiation with respect to `GeometryGroup.geometries` elements.
- Users can now export `SimulationData` to MATLAB `.mat` files with the `to_mat_file` method.
- `ModeSolver` methods to plot the mode plane simulation components, including `.plot()`, `.plot_eps()`, `.plot_structures_eps()`, `.plot_grid()`, and `.plot_pml()`.
- Support for differentiation with respect to monitor attributes that require interpolation, such as flux and intensity.
- Support for automatic differentiation with respect to `.eps_inf` and `.poles` contained in dispersive mediums `td.PoleResidue` and `td.CustomPoleResidue`.
- Support for `FieldProjectionAngleMonitor` for 2D simulations with `far_field_approx = True`.

### Fixed
- Bug where boundary layers would be plotted too small in 2D simulations.
- Bug when plotting transformed geometries.
- Bug when snapping `CoaxialLumpedPort` to grid cell boundaries.
- Errors in `PolySlab` when using autograd differentiation with non-zero `sidewall_angle` and `dilation`.
- Error in `EMESimulationData.smatrix_in_basis` when using older versions of xarray.
- Gradients for `Box` objects when simulation size is < 3D.

## [2.7.0] - 2024-06-17

Expand Down Expand Up @@ -1245,7 +1274,9 @@ 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.0...develop
[Unreleased]: https://github.com/flexcompute/tidy3d/compare/v2.8.0rc1...pre/2.8
[2.8.0rc1]: https://github.com/flexcompute/tidy3d/compare/v2.7.1...v2.8.0rc1
[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
[2.6.4]: https://github.com/flexcompute/tidy3d/compare/v2.6.3...v2.6.4
[2.6.3]: https://github.com/flexcompute/tidy3d/compare/v2.6.2...v2.6.3
Expand Down
1 change: 1 addition & 0 deletions docs/api/simulation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Simulation
:template: module.rst

tidy3d.Simulation
tidy3d.RunTimeSpec
File renamed without changes.
Loading

0 comments on commit 93aec55

Please sign in to comment.