@@ -4533,7 +4533,6 @@ def to_gdstk(
4533
4533
gds_layer_dtype_map : Optional [
4534
4534
dict [AbstractMedium , tuple [pydantic .NonNegativeInt , pydantic .NonNegativeInt ]]
4535
4535
] = None ,
4536
- swap_axes : bool = False
4537
4536
) -> list :
4538
4537
"""Convert a simulation's planar slice to a .gds type polygon list.
4539
4538
@@ -4562,10 +4561,10 @@ def to_gdstk(
4562
4561
gds_layer_dtype_map = {}
4563
4562
4564
4563
axis , _ = self .geometry .parse_xyz_kwargs (x = x , y = y , z = z )
4565
- _ , bmin = self .pop_axis (self .bounds [0 ], axis , swap_axes = swap_axes )
4566
- _ , bmax = self .pop_axis (self .bounds [1 ], axis , swap_axes = swap_axes )
4564
+ _ , bmin = self .pop_axis (self .bounds [0 ], axis )
4565
+ _ , bmax = self .pop_axis (self .bounds [1 ], axis )
4567
4566
4568
- _ , symmetry = self .pop_axis (self .symmetry , axis , swap_axes = swap_axes )
4567
+ _ , symmetry = self .pop_axis (self .symmetry , axis )
4569
4568
if symmetry [0 ] != 0 :
4570
4569
bmin = (0 , bmin [1 ])
4571
4570
if symmetry [1 ] != 0 :
@@ -4583,7 +4582,6 @@ def to_gdstk(
4583
4582
frequency = frequency ,
4584
4583
gds_layer = gds_layer ,
4585
4584
gds_dtype = gds_dtype ,
4586
- swap_axes = swap_axes ,
4587
4585
):
4588
4586
pmin , pmax = polygon .bounding_box ()
4589
4587
if pmin [0 ] < bmin [0 ] or pmin [1 ] < bmin [1 ] or pmax [0 ] > bmax [0 ] or pmax [1 ] > bmax [1 ]:
@@ -4661,7 +4659,6 @@ def to_gds_file(
4661
4659
dict [AbstractMedium , tuple [pydantic .NonNegativeInt , pydantic .NonNegativeInt ]]
4662
4660
] = None ,
4663
4661
gds_cell_name : str = "MAIN" ,
4664
- swap_axes : bool = False ,
4665
4662
) -> None :
4666
4663
"""Append the simulation structures to a .gds cell.
4667
4664
0 commit comments