@@ -1345,7 +1345,6 @@ def to_gdstk(
1345
1345
z : Optional [float ] = None ,
1346
1346
gds_layer : pydantic .NonNegativeInt = 0 ,
1347
1347
gds_dtype : pydantic .NonNegativeInt = 0 ,
1348
- transpose : bool = False ,
1349
1348
) -> list :
1350
1349
"""Convert a Geometry object's planar slice to a .gds type polygon.
1351
1350
@@ -1369,7 +1368,7 @@ def to_gdstk(
1369
1368
"""
1370
1369
import gdstk
1371
1370
1372
- shapes = self .intersections_plane (x = x , y = y , z = z , transpose = transpose )
1371
+ shapes = self .intersections_plane (x = x , y = y , z = z )
1373
1372
polygons = []
1374
1373
for shape in shapes :
1375
1374
for vertices in vertices_from_shapely (shape ):
@@ -1396,7 +1395,6 @@ def to_gds(
1396
1395
z : Optional [float ] = None ,
1397
1396
gds_layer : pydantic .NonNegativeInt = 0 ,
1398
1397
gds_dtype : pydantic .NonNegativeInt = 0 ,
1399
- transpose : bool = False ,
1400
1398
) -> None :
1401
1399
"""Append a Geometry object's planar slice to a .gds cell.
1402
1400
@@ -1424,7 +1422,7 @@ def to_gds(
1424
1422
)
1425
1423
raise Tidy3dImportError ("Argument 'cell' must be an instance of 'gdstk.Cell'." )
1426
1424
1427
- polygons = self .to_gdstk (x = x , y = y , z = z , gds_layer = gds_layer , gds_dtype = gds_dtype , transpose = transpose )
1425
+ polygons = self .to_gdstk (x = x , y = y , z = z , gds_layer = gds_layer , gds_dtype = gds_dtype )
1428
1426
if polygons :
1429
1427
cell .add (* polygons )
1430
1428
@@ -1438,7 +1436,6 @@ def to_gds_file(
1438
1436
gds_layer : pydantic .NonNegativeInt = 0 ,
1439
1437
gds_dtype : pydantic .NonNegativeInt = 0 ,
1440
1438
gds_cell_name : str = "MAIN" ,
1441
- transpose : bool = False ,
1442
1439
) -> None :
1443
1440
"""Export a Geometry object's planar slice to a .gds file.
1444
1441
@@ -1469,7 +1466,7 @@ def to_gds_file(
1469
1466
1470
1467
library = gdstk .Library ()
1471
1468
cell = library .new_cell (gds_cell_name )
1472
- self .to_gds (cell , x = x , y = y , z = z , gds_layer = gds_layer , gds_dtype = gds_dtype , transpose = transpose )
1469
+ self .to_gds (cell , x = x , y = y , z = z , gds_layer = gds_layer , gds_dtype = gds_dtype )
1473
1470
pathlib .Path (fname ).parent .mkdir (parents = True , exist_ok = True )
1474
1471
library .write_gds (fname )
1475
1472
0 commit comments