@@ -4518,7 +4518,6 @@ def to_gdstk(
4518
4518
gds_layer_dtype_map : Optional [
4519
4519
dict [AbstractMedium , tuple [pydantic .NonNegativeInt , pydantic .NonNegativeInt ]]
4520
4520
] = None ,
4521
- swap_axes : bool = False
4522
4521
) -> list :
4523
4522
"""Convert a simulation's planar slice to a .gds type polygon list.
4524
4523
@@ -4547,10 +4546,10 @@ def to_gdstk(
4547
4546
gds_layer_dtype_map = {}
4548
4547
4549
4548
axis , _ = self .geometry .parse_xyz_kwargs (x = x , y = y , z = z )
4550
- _ , bmin = self .pop_axis (self .bounds [0 ], axis , swap_axes = swap_axes )
4551
- _ , bmax = self .pop_axis (self .bounds [1 ], axis , swap_axes = swap_axes )
4549
+ _ , bmin = self .pop_axis (self .bounds [0 ], axis )
4550
+ _ , bmax = self .pop_axis (self .bounds [1 ], axis )
4552
4551
4553
- _ , symmetry = self .pop_axis (self .symmetry , axis , swap_axes = swap_axes )
4552
+ _ , symmetry = self .pop_axis (self .symmetry , axis )
4554
4553
if symmetry [0 ] != 0 :
4555
4554
bmin = (0 , bmin [1 ])
4556
4555
if symmetry [1 ] != 0 :
@@ -4568,7 +4567,6 @@ def to_gdstk(
4568
4567
frequency = frequency ,
4569
4568
gds_layer = gds_layer ,
4570
4569
gds_dtype = gds_dtype ,
4571
- swap_axes = swap_axes ,
4572
4570
):
4573
4571
pmin , pmax = polygon .bounding_box ()
4574
4572
if pmin [0 ] < bmin [0 ] or pmin [1 ] < bmin [1 ] or pmax [0 ] > bmax [0 ] or pmax [1 ] > bmax [1 ]:
@@ -4646,7 +4644,6 @@ def to_gds_file(
4646
4644
dict [AbstractMedium , tuple [pydantic .NonNegativeInt , pydantic .NonNegativeInt ]]
4647
4645
] = None ,
4648
4646
gds_cell_name : str = "MAIN" ,
4649
- swap_axes : bool = False ,
4650
4647
) -> None :
4651
4648
"""Append the simulation structures to a .gds cell.
4652
4649
0 commit comments