Closed joamatab closed 2 days ago
This pull request updates the codebase to be compatible with the latest version of gdsfactory. The main changes focus on improving type hints, docstring formatting, and code style to align with modern Python practices and the latest gdsfactory requirements.
classDiagram
class Sprocess {
+initialize_sprocess(component, waferstack, layermap, xsection_bounds: tuple[tuple[float, float], tuple[float, float]] | None, u_offset: float, round_tol: int, simplify_tol: float, initial_z_resolutions: Dict, initial_xy_resolution: float | None, extra_resolution_str: str | None)
+write_sprocess(component, waferstack, layermap, process, xsection_bounds: tuple[tuple[float, float], tuple[float, float]] | None, u_offset: float, init_tdr: str | None, save_directory: Path | None, execution_directory: Path | None, filename: str, struct_prefix: str, structout: str | None, split_steps: bool, init_lines: str, initial_z_resolutions: Dict, initial_xy_resolution: float | None, extra_resolution_str: str | None, global_process_remeshing_str: str, global_device_remeshing_str: str, num_threads: int, contact_str: str, device_remesh: bool) -> None
}
classDiagram
class SpiceToYaml {
+spice_to_yaml(netlist_path: str, mapping_path: str, picyaml_path: str, pdk: str, mode: str) -> None
+cli(netlist_path: str, mode: str, picyaml_path: str) -> None
+get_netlists(netlist_path: str, mapping_path: str, pdk: str, ignore_electrical: bool, map_flag: str, ignored_info: tuple[str, ...]) -> list
}
classDiagram
class UzXsectionMesh {
+get_u_bounds_polygons(polygons, xsection_bounds: tuple[tuple[float, float], tuple[float, float]], u_offset: float)
+get_u_bounds_layers(layer_polygons_dict: dict[tuple(str, str, str), MultiPolygon], xsection_bounds: tuple[tuple[float, float], tuple[float, float]])
+get_uz_bounds_layers(layer_polygons_dict, xsection_bounds: tuple[tuple[float, float], tuple[float, float]], layer_stack: LayerStack, u_offset: float, z_bounds: tuple[float, float] | None)
}
classDiagram
class XyzMesh {
+define_prisms(layer_polygons_dict: dict, layer_stack: LayerStack, model: Model, resolutions: dict, scale_factor: float)
+xyz_mesh(component, layer_stack, layer_physical_map, layer_meshbool_map, resolutions, default_characteristic_length: float, background_tag: str, background_padding: tuple, background_mesh_order: int, global_scaling: float, global_scaling_premesh: float, global_2D_algorithm: str, global_3D_algorithm: str, filename: str, verbosity: int, round_tol: int, simplify_tol: float, n_threads: int, port_names: list[str] | None, edge_ports: list[str] | None, gmsh_version: float | None, layer_port_delimiter: str | None, background_remeshing_file: Path | None, optimization_flags: tuple[tuple[str, int]] | None) -> bool
}
Change | Details | Files | |
---|---|---|---|
Updated type hints throughout the codebase to use the new Python syntax |
|
None |
gplugins/sentaurus/sprocess.py gplugins/spice/spice_to_yaml.py gplugins/vlsir/export_netlist.py gplugins/path_length_analysis/path_length_analysis.py |
Improved docstring formatting and documentation |
|
gplugins/tidy3d/component.py gplugins/sax/build_model.py gplugins/gmeep/write_sparameters_meep.py gplugins/klayout/get_density.py |
|
Updated string formatting to use f-strings with !s for string conversion |
|
gplugins/sentaurus/sprocess.py gplugins/sentaurus/svisual.py |
make it compatible with latest gdsfactory
Summary by Sourcery
Enhance codebase by updating type annotations, refactoring string formatting, and improving docstring consistency. Update pre-commit hooks to latest versions for better linting and notebook handling.
Enhancements:
Build: