File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111- Add support for ` np.unwrap ` in ` tidy3d.plugins.autograd ` .
1212
1313### Fixed
14- - Arrow lengths are now scaled consistently in the X and Y directions,
15- and their lengths no longer exceed the height of the plot window .
14+ - Arrow lengths are now scaled consistently in the X and Y directions, and their lengths no longer exceed the height of the plot window.
15+ - Bug in ` PlaneWave ` defined with a negative ` angle_theta ` which would lead to wrong injection .
1616
1717## [ 2.9.0rc1] - 2025-06-10
1818
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ def _angle_theta_actual(self, background_n: Numpy) -> Numpy:
318318 k0 = 2 * np .pi * np .array (self .freqs ) / C_0 * background_n
319319 kx , ky = self .in_plane_k (background_n )
320320 k_perp = np .sqrt (kx ** 2 + ky ** 2 )
321- return np .real (np .arcsin (k_perp / k0 ))
321+ return np .real (np .arcsin (k_perp / k0 )) * np . sign ( self . angle_theta )
322322
323323 def _rotate_points_z (self , points : Numpy , background_n : Numpy ) -> Numpy :
324324 """Rotate points to new coordinates where z is the propagation axis."""
You can’t perform that action at this time.
0 commit comments