@@ -1739,7 +1739,7 @@ def _intersections_normal(self, z: float, transpose: bool = False) -> list:
1739
1739
z : float
1740
1740
Position along the axis normal to slab
1741
1741
transpose : bool
1742
- Optional: Swap the order of the x and y axis in the geometry data
1742
+ Optional: Swap the order of the x and y axis in the geometry data.
1743
1743
1744
1744
Returns
1745
1745
-------
@@ -1760,7 +1760,7 @@ def _intersections_side(self, position: float, axis: Axis, transpose: bool = Fal
1760
1760
axis : int
1761
1761
Integer index into 'xyz' (0,1,2).
1762
1762
transpose : bool
1763
- Optional: Swap the order of the remaining two axes (the ones not equal to axis)
1763
+ Optional: Swap the order of the remaining two axes (the axes not equal to axis).
1764
1764
1765
1765
Returns
1766
1766
-------
@@ -2098,6 +2098,8 @@ def intersections_plane(
2098
2098
Position of plane in y direction, only one of x,y,z can be specified to define plane.
2099
2099
z : float = None
2100
2100
Position of plane in z direction, only one of x,y,z can be specified to define plane.
2101
+ transpose: bool = False
2102
+ Optional: Swap the order of the coordinates in the two remaining (unspecified) axis?
2101
2103
2102
2104
Returns
2103
2105
-------
@@ -2483,13 +2485,12 @@ def _derivative_face(
2483
2485
min_max_index : int ,
2484
2486
axis_normal : Axis ,
2485
2487
derivative_info : DerivativeInfo ,
2486
- transpose : bool = False ,
2487
2488
) -> float :
2488
2489
"""Compute the derivative w.r.t. shifting a face in the normal direction."""
2489
2490
2490
2491
# normal and tangential dims
2491
- dim_normal , dims_perp = self .pop_axis ("xyz" , axis = axis_normal , transpose = transpose )
2492
- fld_normal , flds_perp = self .pop_axis (("Ex" , "Ey" , "Ez" ), axis = axis_normal , transpose = transpose )
2492
+ dim_normal , dims_perp = self .pop_axis ("xyz" , axis = axis_normal )
2493
+ fld_normal , flds_perp = self .pop_axis (("Ex" , "Ey" , "Ez" ), axis = axis_normal )
2493
2494
2494
2495
# normal and tangential fields
2495
2496
D_normal = derivative_info .D_der_map [fld_normal ].sel (f = derivative_info .frequency )
@@ -2499,7 +2500,7 @@ def _derivative_face(
2499
2500
2500
2501
# normal and tangential bounds
2501
2502
bounds_T = np .array (derivative_info .bounds ).T # put (xyz) first dimension
2502
- bounds_normal , bounds_perp = self .pop_axis (bounds_T , axis = axis_normal , transpose = transpose )
2503
+ bounds_normal , bounds_perp = self .pop_axis (bounds_T , axis = axis_normal )
2503
2504
2504
2505
# define the integration plane
2505
2506
coord_normal_face = bounds_normal [min_max_index ]
@@ -2546,8 +2547,8 @@ def _derivative_face(
2546
2547
eps_xyz_outside = [eps .isel (** {dim_normal : index_out }) for eps in eps_xyz ]
2547
2548
2548
2549
# put in normal / tangential basis
2549
- eps_in_normal , eps_in_perps = self .pop_axis (eps_xyz_inside , axis = axis_normal , transpose = transpose )
2550
- eps_out_normal , eps_out_perps = self .pop_axis (eps_xyz_outside , axis = axis_normal , transpose = transpose )
2550
+ eps_in_normal , eps_in_perps = self .pop_axis (eps_xyz_inside , axis = axis_normal )
2551
+ eps_out_normal , eps_out_perps = self .pop_axis (eps_xyz_outside , axis = axis_normal )
2551
2552
2552
2553
# compute integration pre-factors
2553
2554
delta_eps_perps = [eps_in - eps_out for eps_in , eps_out in zip (eps_in_perps , eps_out_perps )]
0 commit comments