Skip to content

Commit 7ed2b30

Browse files
authored
Merge pull request #519 from gdsfactory/minor_ruff_fixes
fix docstring
2 parents bf9d1b1 + c38b65f commit 7ed2b30

File tree

2 files changed

+25
-28
lines changed

2 files changed

+25
-28
lines changed

gplugins/sentaurus/sde.py

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ def initialize_sde(
4343
"""Returns a string defining the geometry definition for a Sentaurus sde file based on a component, initial wafer state, and settings.
4444
4545
Arguments:
46-
component,: gdsfactory component containing polygons defining the mask
46+
component: gdsfactory component containing polygons defining the mask
4747
waferstack: gdsfactory layerstack representing the initial wafer
4848
layermap: gdsfactory LayerMap object containing all layers
49-
process: list of gdsfactory.technology.processes process steps
50-
xsection_bounds: two in-plane coordinates ((x1,y1), (x2,y2)) defining a line cut for a 2D process cross-section
49+
xsection_bounds: two in-plane coordinates ((x1,y1), (x2,y2)) defining a line cut for a 2D process cross-section. If None, simulate in 3D.
5150
u_offset: for the x-axis of the 2D coordinate system, useful to go back to component units if xsection_bounds parallel to x or y
52-
round_tol (int): for gds cleanup (grid snapping by rounding coordinates)
53-
simplify_tol (float): for gds cleanup (shape simplification)
51+
round_tol: for gds cleanup (grid snapping by rounding coordinates)
52+
simplify_tol: for gds cleanup (shape simplification)
53+
header_str: initial string to write to the TCL file. Useful for settings
5454
"""
5555
output_str = ""
5656

@@ -113,25 +113,22 @@ def write_sde(
113113
"""Writes a Sentaurus Device Editor Scheme file for the component + layermap + initial waferstack + process.
114114
115115
Arguments:
116-
component,: gdsfactory component containing polygons defining the mask
117-
waferstack: gdsfactory layerstack representing the initial wafer
118-
layermap: gdsfactory LayerMap object containing all layers
119-
process: list of gdsfactory.technology.processes process steps
120-
xsection_bounds: two in-plane coordinates ((x1,y1), (x2,y2)) defining a line cut for a 2D process cross-section. If None, simulate in 3D.
121-
u_offset: offset for lateral dimension of xsection mesh
122-
save_directory: directory where to save output and script. Default ./sprocess
116+
component: gdsfactory component containing polygons defining the mask.
117+
waferstack: gdsfactory layerstack representing the initial wafer.
118+
layermap: gdsfactory LayerMap object containing all layers.
119+
process: list of gdsfactory.technology.processes process steps.
120+
contact_str: string defining the contacts to be added to the device.
121+
slice_str: string defining the slices to be added to the device.
122+
init_tdr: tdr file containing the initial structure, ready for sdevice simulation.
123+
save_directory: directory where to save output and script. Default ./sprocess.
123124
execution_directory: directory where sprocess will be run from. Default local ./
124125
filename: name of the final sprocess command file
125-
struct_prefix: prefixes of the final sprocess command file
126-
structout: tdr file containing the final structure, ready for sdevice simulation. Defaults to component name.
127-
contact_portnames Tuple(str): list of portnames to convert into device contacts
128-
round_tol (int): for gds cleanup (grid snapping by rounding coordinates)
126+
fileout: tdr file containing the final structure, ready for sdevice simulation. Defaults to component name.
127+
round_tol: for gds cleanup (grid snapping by rounding coordinates).
129128
simplify_tol (float): for gds cleanup (shape simplification)
130-
split_steps (bool): if True, creates a new workbench node for each step, and saves a TDR file at each step. Useful for fabrication splits, visualization, and debugging.
131-
init_lines (str): initial string to write to the TCL file. Useful for settings
132-
initial_z_resolutions {key: float}: initial layername: spacing mapping for mesh resolution in the wafer normal direction
133-
initial_xy_resolution (float): initial resolution in the wafer plane
134-
global_device_remeshing_str (str): commands to apply before remeshing
129+
device_remesh (bool): whether to remesh the device after processing.
130+
remesh_str (str): string defining the remeshing options.
131+
header_str (str): initial string to write to the TCL file. Useful for settings.
135132
num_threads (int): for parallelization
136133
"""
137134
save_directory = Path("./sde/") if save_directory is None else Path(save_directory)

gplugins/tidy3d/tests/test_materials.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_material_medium() -> None:
2323
clad_material=td.Medium(permittivity=(1.448) ** 2),
2424
**settings,
2525
)
26-
strip._data
26+
assert strip._data
2727

2828

2929
def test_material_float() -> None:
@@ -32,7 +32,7 @@ def test_material_float() -> None:
3232
clad_material=1.4,
3333
**settings,
3434
)
35-
strip._data
35+
assert strip._data
3636

3737

3838
def test_material_string() -> None:
@@ -41,7 +41,7 @@ def test_material_string() -> None:
4141
clad_material="sio2",
4242
**settings,
4343
)
44-
strip._data
44+
assert strip._data
4545

4646

4747
def test_material_validation_error() -> None:
@@ -51,7 +51,7 @@ def test_material_validation_error() -> None:
5151
clad_material="sio2",
5252
**settings,
5353
)
54-
strip._data
54+
assert strip._data
5555

5656

5757
def test_material_library_many_variants() -> None:
@@ -61,7 +61,7 @@ def test_material_library_many_variants() -> None:
6161
clad_material="sio2",
6262
**settings,
6363
)
64-
strip._data
64+
assert strip._data
6565

6666

6767
def test_material_library_single_variant() -> None:
@@ -70,7 +70,7 @@ def test_material_library_single_variant() -> None:
7070
clad_material="AlxOy",
7171
**settings,
7272
)
73-
strip._data
73+
assert strip._data
7474

7575

7676
def test_material_library() -> None:
@@ -79,7 +79,7 @@ def test_material_library() -> None:
7979
clad_material="sio2",
8080
**settings,
8181
)
82-
strip._data
82+
assert strip._data
8383

8484

8585
if __name__ == "__main__":

0 commit comments

Comments
 (0)