Skip to content

Commit fd54334

Browse files
committed
removed the "transpose" arguments from the various _gds functions in geometry/base.py
1 parent a1ed447 commit fd54334

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tidy3d/components/geometry/base.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,6 @@ def to_gdstk(
13451345
z: Optional[float] = None,
13461346
gds_layer: pydantic.NonNegativeInt = 0,
13471347
gds_dtype: pydantic.NonNegativeInt = 0,
1348-
transpose: bool = False,
13491348
) -> list:
13501349
"""Convert a Geometry object's planar slice to a .gds type polygon.
13511350
@@ -1369,7 +1368,7 @@ def to_gdstk(
13691368
"""
13701369
import gdstk
13711370

1372-
shapes = self.intersections_plane(x=x, y=y, z=z, transpose=transpose)
1371+
shapes = self.intersections_plane(x=x, y=y, z=z)
13731372
polygons = []
13741373
for shape in shapes:
13751374
for vertices in vertices_from_shapely(shape):
@@ -1396,7 +1395,6 @@ def to_gds(
13961395
z: Optional[float] = None,
13971396
gds_layer: pydantic.NonNegativeInt = 0,
13981397
gds_dtype: pydantic.NonNegativeInt = 0,
1399-
transpose: bool = False,
14001398
) -> None:
14011399
"""Append a Geometry object's planar slice to a .gds cell.
14021400
@@ -1424,7 +1422,7 @@ def to_gds(
14241422
)
14251423
raise Tidy3dImportError("Argument 'cell' must be an instance of 'gdstk.Cell'.")
14261424

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)
14281426
if polygons:
14291427
cell.add(*polygons)
14301428

@@ -1438,7 +1436,6 @@ def to_gds_file(
14381436
gds_layer: pydantic.NonNegativeInt = 0,
14391437
gds_dtype: pydantic.NonNegativeInt = 0,
14401438
gds_cell_name: str = "MAIN",
1441-
transpose: bool = False,
14421439
) -> None:
14431440
"""Export a Geometry object's planar slice to a .gds file.
14441441
@@ -1469,7 +1466,7 @@ def to_gds_file(
14691466

14701467
library = gdstk.Library()
14711468
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)
14731470
pathlib.Path(fname).parent.mkdir(parents=True, exist_ok=True)
14741471
library.write_gds(fname)
14751472

0 commit comments

Comments
 (0)