diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eafda4b273..096fde2106 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,6 +27,7 @@ repos: - id: codespell exclude: (?x)(^notebooks) args: ["--ignore-words", "doc/styles/Vocab/ANSYS/accept.txt", "-w"] + - repo: https://github.com/pycqa/pydocstyle rev: 6.3.0 hooks: @@ -41,6 +42,7 @@ repos: - id: debug-statements - id: check-yaml - id: trailing-whitespace + exclude: (?x)^(.*\.def) # - repo: https://github.com/ansys/pre-commit-hooks # rev: v0.2.2 diff --git a/README.rst b/README.rst index b08d0867e3..94502b25de 100644 --- a/README.rst +++ b/README.rst @@ -35,7 +35,7 @@ For developers Installing Pyedb in developer mode allows you to modify the source and enhance it. -Before contributing to the project, please refer to the `PyAnsys Developer's guide`_. You will +Before contributing to the project, please refer to the `PyAnsys Developer's guide`_. You will need to follow these steps: 1. Start by cloning this repository: @@ -77,7 +77,7 @@ need to follow these steps: 4. Finally, verify your development installation by running: .. code:: bash - + tox @@ -86,7 +86,7 @@ How to testing This project takes advantage of `tox`_. This tool allows to automate common development tasks (similar to Makefile) but it is oriented towards Python -development. +development. Using tox ^^^^^^^^^ diff --git a/doc/make.bat b/doc/make.bat index fbf400507e..cfdfa1cf1b 100644 --- a/doc/make.bat +++ b/doc/make.bat @@ -30,7 +30,7 @@ if errorlevel 9009 ( goto end :clean -rmdir /s /q %BUILDDIR% > /NUL 2>&1 +rmdir /s /q %BUILDDIR% > /NUL 2>&1 for /d /r %SOURCEDIR% %%d in (_autosummary) do @if exist "%%d" rmdir /s /q "%%d" goto end diff --git a/doc/source/_templates/sidebar-nav-bs.html b/doc/source/_templates/sidebar-nav-bs.html index 0747bd05f0..2ccf1db9e9 100644 --- a/doc/source/_templates/sidebar-nav-bs.html +++ b/doc/source/_templates/sidebar-nav-bs.html @@ -5,6 +5,6 @@ {% else %} {{ generate_toctree_html("sidebar", maxdepth=4, collapse=False, includehidden=True, titles_only=True) }} {% endif %} - + diff --git a/doc/source/api/geometry.rst b/doc/source/api/geometry.rst index 026128bad5..d5b0e621f4 100644 --- a/doc/source/api/geometry.rst +++ b/doc/source/api/geometry.rst @@ -15,7 +15,7 @@ Classes PointData Point3DData Triangle3DData - + Enums ----- diff --git a/doc/source/api/glossary.rst b/doc/source/api/glossary.rst index 6c34eb6904..7a3bb9969c 100644 --- a/doc/source/api/glossary.rst +++ b/doc/source/api/glossary.rst @@ -8,21 +8,21 @@ Glossary Connectable The generic type for most objects in Layout. - + Objects of the following types are all connectables : - + .. toctree:: :maxdepth: 1 primitive hierarchy terminal - + Zone - Multizone stackups allow a design to be divided into areas called zones. - - Each zone contains a subset of layers available to the entire circuit board and is spatially defined by polygons on the Outline layer. + Multizone stackups allow a design to be divided into areas called zones. + + Each zone contains a subset of layers available to the entire circuit board and is spatially defined by polygons on the Outline layer. ValueLike @@ -54,9 +54,9 @@ Glossary :obj:`tuple`\[:class:`DCThicknessType `, :term:`ValueLike`, :obj:`bool`\] HFSSExtents - + Extent box around the design, represented by a :obj:`dict` with the following key:values - + | **dielectric**: (:obj:`float`, :obj:`bool`) | Dielectric extent size. First parameter is the value and second parameter indicates if the value is a multiple. | **airbox_horizontal**: (:obj:`float`, :obj:`bool`) diff --git a/doc/source/api/hierarchy.rst b/doc/source/api/hierarchy.rst index 917f643f50..4f818129c1 100644 --- a/doc/source/api/hierarchy.rst +++ b/doc/source/api/hierarchy.rst @@ -12,7 +12,7 @@ Object Types .. autosummary:: :toctree: _autosummary - + CellInstance InstArray ComponentGroup @@ -32,6 +32,6 @@ Enums .. autosummary:: :toctree: _autosummary - + ComponentType MeshClosure \ No newline at end of file diff --git a/doc/source/api/layer.rst b/doc/source/api/layer.rst index bddda654dc..73bffc820a 100644 --- a/doc/source/api/layer.rst +++ b/doc/source/api/layer.rst @@ -8,7 +8,7 @@ Classes .. autosummary:: :toctree: _autosummary - + Layer StackupLayer ViaLayer diff --git a/doc/source/api/layout.rst b/doc/source/api/layout.rst index e32d830e92..d5a70885bb 100644 --- a/doc/source/api/layout.rst +++ b/doc/source/api/layout.rst @@ -8,7 +8,7 @@ Classes .. autosummary:: :toctree: _autosummary - + Cell Layout McadModel @@ -20,6 +20,6 @@ Enums .. autosummary:: :toctree: _autosummary - + CellType DesignMode \ No newline at end of file diff --git a/doc/source/api/net.rst b/doc/source/api/net.rst index a610f226f1..50dec12086 100644 --- a/doc/source/api/net.rst +++ b/doc/source/api/net.rst @@ -8,7 +8,7 @@ Classes .. autosummary:: :toctree: _autosummary - + DifferentialPair ExtendedNet Net diff --git a/doc/source/api/terminal.rst b/doc/source/api/terminal.rst index 16e15de3c8..bde52b7948 100644 --- a/doc/source/api/terminal.rst +++ b/doc/source/api/terminal.rst @@ -8,7 +8,7 @@ Classes .. autosummary:: :toctree: _autosummary - + BoundaryType BundleTerminal Edge diff --git a/doc/source/index.rst b/doc/source/index.rst index 01901908a8..65dd59601e 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -15,7 +15,7 @@ Choose :ref:`ref_index_api` to access a complete description of all the availabl .. toctree:: :hidden: - + installation user_guide/user_guide api/index diff --git a/src/ansys/edb/core/__init__.py b/src/ansys/edb/core/__init__.py index 8a341f0619..b02d9f3ae1 100644 --- a/src/ansys/edb/core/__init__.py +++ b/src/ansys/edb/core/__init__.py @@ -6,4 +6,3 @@ import importlib_metadata __version__ = importlib_metadata.version("ansys-edb-core") - diff --git a/src/ansys/edb/core/database.py b/src/ansys/edb/core/database.py index 561f542bbe..4e71b7e954 100644 --- a/src/ansys/edb/core/database.py +++ b/src/ansys/edb/core/database.py @@ -6,17 +6,6 @@ import ansys.api.edb.v1.edb_defs_pb2 as edb_defs_pb2 import google.protobuf.wrappers_pb2 as proto_wrappers -from ansys.edb.core.inner import ObjBase, variable_server -from ansys.edb.core.inner.messages import ( - double_property_message, - edb_obj_collection_message, - edb_obj_name_message, - get_product_property_ids_message, - get_product_property_message, - set_product_property_message, - str_message, -) -from ansys.edb.core.inner.utils import map_list from ansys.edb.core.definition import ( ApdBondwireDef, BondwireDefType, @@ -29,6 +18,17 @@ PadstackDef, ) from ansys.edb.core.edb_defs import DefinitionObjType +from ansys.edb.core.inner import ObjBase, variable_server +from ansys.edb.core.inner.messages import ( + double_property_message, + edb_obj_collection_message, + edb_obj_name_message, + get_product_property_ids_message, + get_product_property_message, + set_product_property_message, + str_message, +) +from ansys.edb.core.inner.utils import map_list from ansys.edb.core.layout import Cell from ansys.edb.core.session import DatabaseServiceStub, StubAccessor, StubType diff --git a/src/ansys/edb/core/definition/__init__.py b/src/ansys/edb/core/definition/__init__.py index d834f44946..c5bd269e0a 100644 --- a/src/ansys/edb/core/definition/__init__.py +++ b/src/ansys/edb/core/definition/__init__.py @@ -26,7 +26,9 @@ from ansys.edb.core.definition.ic_component_property import ICComponentProperty from ansys.edb.core.definition.io_component_property import IOComponentProperty from ansys.edb.core.definition.material_def import MaterialDef, MaterialProperty, ThermalModifier -from ansys.edb.core.definition.material_property_thermal_modifier import MaterialPropertyThermalModifier +from ansys.edb.core.definition.material_property_thermal_modifier import ( + MaterialPropertyThermalModifier, +) from ansys.edb.core.definition.multipole_debye_model import MultipoleDebyeModel from ansys.edb.core.definition.package_def import PackageDef from ansys.edb.core.definition.padstack_def import PadstackDef diff --git a/src/ansys/edb/core/definition/bondwire_def.py b/src/ansys/edb/core/definition/bondwire_def.py index ef624f6eea..53a17af9c9 100644 --- a/src/ansys/edb/core/definition/bondwire_def.py +++ b/src/ansys/edb/core/definition/bondwire_def.py @@ -5,8 +5,8 @@ from ansys.api.edb.v1 import bondwire_def_pb2_grpc import ansys.api.edb.v1.bondwire_def_pb2 as pb -from ansys.edb.core.inner import ObjBase, messages from ansys.edb.core.edb_defs import DefinitionObjType +from ansys.edb.core.inner import ObjBase, messages from ansys.edb.core.session import StubAccessor, StubType from ansys.edb.core.utility import Value diff --git a/src/ansys/edb/core/definition/component_def.py b/src/ansys/edb/core/definition/component_def.py index 3f9cb5fbee..ac5febe955 100644 --- a/src/ansys/edb/core/definition/component_def.py +++ b/src/ansys/edb/core/definition/component_def.py @@ -1,10 +1,10 @@ """Component Def Definition.""" from ansys.api.edb.v1.component_def_pb2_grpc import ComponentDefServiceStub -from ansys.edb.core.inner import ObjBase, messages -from ansys.edb.core.inner.utils import map_list from ansys.edb.core.definition import component_model, component_pin from ansys.edb.core.edb_defs import DefinitionObjType +from ansys.edb.core.inner import ObjBase, messages +from ansys.edb.core.inner.utils import map_list from ansys.edb.core.layout import cell from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/definition/component_pin.py b/src/ansys/edb/core/definition/component_pin.py index d87eb91bd5..739fd7e336 100644 --- a/src/ansys/edb/core/definition/component_pin.py +++ b/src/ansys/edb/core/definition/component_pin.py @@ -1,8 +1,8 @@ """Component Pin Definition.""" from ansys.api.edb.v1.component_pin_pb2_grpc import ComponentPinServiceStub -from ansys.edb.core.inner import ObjBase, messages from ansys.edb.core.definition import component_def +from ansys.edb.core.inner import ObjBase, messages from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/definition/component_property.py b/src/ansys/edb/core/definition/component_property.py index 76f1d41a4c..67fb1941db 100644 --- a/src/ansys/edb/core/definition/component_property.py +++ b/src/ansys/edb/core/definition/component_property.py @@ -3,8 +3,8 @@ from ansys.api.edb.v1.component_property_pb2_grpc import ComponentPropertyServiceStub import ansys.api.edb.v1.model_pb2 as model_pb2 -from ansys.edb.core.inner import ObjBase, messages from ansys.edb.core.definition import package_def +from ansys.edb.core.inner import ObjBase, messages from ansys.edb.core.session import StubAccessor, StubType from ansys.edb.core.utility import Value @@ -55,7 +55,12 @@ def model(self): comp_model_msg = self.__stub.GetModel(messages.edb_obj_message(self)) def get_model_obj_type(): - from ansys.edb.core.hierarchy import NetlistModel, PinPairModel, SParameterModel, SPICEModel + from ansys.edb.core.hierarchy import ( + NetlistModel, + PinPairModel, + SParameterModel, + SPICEModel, + ) if comp_model_msg.model_type == model_pb2.SPICE_MODEL_TYPE: return SPICEModel diff --git a/src/ansys/edb/core/definition/dataset_def.py b/src/ansys/edb/core/definition/dataset_def.py index bf06e793fb..9394379426 100644 --- a/src/ansys/edb/core/definition/dataset_def.py +++ b/src/ansys/edb/core/definition/dataset_def.py @@ -1,6 +1,7 @@ """Dataset Def Definition.""" from ansys.api.edb.v1.dataset_def_pb2_grpc import DatasetDefServiceStub +from ansys.edb.core.edb_defs import DefinitionObjType from ansys.edb.core.inner import ObjBase from ansys.edb.core.inner.messages import ( edb_obj_message, @@ -9,7 +10,6 @@ string_property_message, ) from ansys.edb.core.inner.parser import to_point_data_list -from ansys.edb.core.edb_defs import DefinitionObjType from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/definition/debye_model.py b/src/ansys/edb/core/definition/debye_model.py index ad2e96289e..8805abd859 100644 --- a/src/ansys/edb/core/definition/debye_model.py +++ b/src/ansys/edb/core/definition/debye_model.py @@ -4,8 +4,8 @@ from google.protobuf import empty_pb2 from ansys.edb.core import session -from ansys.edb.core.inner import messages from ansys.edb.core.definition.dielectric_material_model import DielectricMaterialModel +from ansys.edb.core.inner import messages class _DebyeModelQueryBuilder: diff --git a/src/ansys/edb/core/definition/djordjecvic_sarkar_model.py b/src/ansys/edb/core/definition/djordjecvic_sarkar_model.py index 96a966399f..1bd6353e38 100644 --- a/src/ansys/edb/core/definition/djordjecvic_sarkar_model.py +++ b/src/ansys/edb/core/definition/djordjecvic_sarkar_model.py @@ -3,8 +3,8 @@ from google.protobuf import empty_pb2 from ansys.edb.core import session -from ansys.edb.core.inner import messages from ansys.edb.core.definition.dielectric_material_model import DielectricMaterialModel +from ansys.edb.core.inner import messages class DjordjecvicSarkarModel(DielectricMaterialModel): diff --git a/src/ansys/edb/core/definition/ic_component_property.py b/src/ansys/edb/core/definition/ic_component_property.py index 1d4cb640ef..ce01088e5b 100644 --- a/src/ansys/edb/core/definition/ic_component_property.py +++ b/src/ansys/edb/core/definition/ic_component_property.py @@ -3,13 +3,13 @@ from ansys.api.edb.v1.ic_component_property_pb2_grpc import ICComponentPropertyServiceStub import google.protobuf.empty_pb2 as empty_pb2 -from ansys.edb.core.inner import messages from ansys.edb.core.definition import ( component_property, die_property, port_property, solder_ball_property, ) +from ansys.edb.core.inner import messages from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/definition/io_component_property.py b/src/ansys/edb/core/definition/io_component_property.py index c7df193f2a..45b0c533d8 100644 --- a/src/ansys/edb/core/definition/io_component_property.py +++ b/src/ansys/edb/core/definition/io_component_property.py @@ -3,8 +3,8 @@ from ansys.api.edb.v1.io_component_property_pb2_grpc import IOComponentPropertyServiceStub import google.protobuf.empty_pb2 as empty_pb2 -from ansys.edb.core.inner import messages from ansys.edb.core.definition import component_property, port_property, solder_ball_property +from ansys.edb.core.inner import messages from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/definition/material_def.py b/src/ansys/edb/core/definition/material_def.py index ff8e16789a..0ef5a23a19 100644 --- a/src/ansys/edb/core/definition/material_def.py +++ b/src/ansys/edb/core/definition/material_def.py @@ -4,9 +4,9 @@ import ansys.api.edb.v1.material_def_pb2 as pb -from ansys.edb.core.inner import ObjBase, messages from ansys.edb.core.definition import DielectricMaterialModel from ansys.edb.core.edb_defs import DefinitionObjType +from ansys.edb.core.inner import ObjBase, messages from ansys.edb.core.session import MaterialDefServiceStub, StubAccessor, StubType from ansys.edb.core.utility import Value @@ -210,7 +210,8 @@ def name(self): @property def dielectric_material_model(self): - """:class:`DielectricMaterialModel `: \ + """:class:`DielectricMaterialModel \ + `: \ Dielectric material model of the material definition.""" return DielectricMaterialModel( self.__stub.GetDielectricMaterialModel(messages.edb_obj_message(self)) diff --git a/src/ansys/edb/core/definition/material_property_thermal_modifier.py b/src/ansys/edb/core/definition/material_property_thermal_modifier.py index 014dbbbe01..b211724a05 100644 --- a/src/ansys/edb/core/definition/material_property_thermal_modifier.py +++ b/src/ansys/edb/core/definition/material_property_thermal_modifier.py @@ -63,8 +63,8 @@ def create(cls, basic_quadratic_params=None, advanced_quadratic_params=None): @property def quadratic_model_params(self): """:class:`BasicQuadraticParams `, \ - :class:`AdvancedQuadraticParams `: Quadratic model parameters of \ - the thermal modifier. + :class:`AdvancedQuadraticParams `: \ + Quadratic model parameters of the thermal modifier. The quadratic model is of the following form: PropVal(Temp) = PropValRef[1 + C1(Temp - TempRef) + C2(Temp - TempRef)^2] diff --git a/src/ansys/edb/core/definition/multipole_debye_model.py b/src/ansys/edb/core/definition/multipole_debye_model.py index daa5778f46..ea3174b071 100644 --- a/src/ansys/edb/core/definition/multipole_debye_model.py +++ b/src/ansys/edb/core/definition/multipole_debye_model.py @@ -4,8 +4,8 @@ from google.protobuf import empty_pb2 from ansys.edb.core import session -from ansys.edb.core.inner import messages from ansys.edb.core.definition.dielectric_material_model import DielectricMaterialModel +from ansys.edb.core.inner import messages class _MultipoleDebyeModelQueryBuilder: diff --git a/src/ansys/edb/core/definition/package_def.py b/src/ansys/edb/core/definition/package_def.py index 87ebd2417a..9ca598068c 100644 --- a/src/ansys/edb/core/definition/package_def.py +++ b/src/ansys/edb/core/definition/package_def.py @@ -2,6 +2,7 @@ from ansys.api.edb.v1 import package_def_pb2_grpc +from ansys.edb.core.edb_defs import DefinitionObjType from ansys.edb.core.inner import ObjBase, parser from ansys.edb.core.inner.messages import ( edb_obj_message, @@ -15,7 +16,6 @@ value_message, value_property_message, ) -from ansys.edb.core.edb_defs import DefinitionObjType from ansys.edb.core.session import StubAccessor, StubType from ansys.edb.core.utility import Value from ansys.edb.core.utility.heat_sink import HeatSink, HeatSinkFinOrientation diff --git a/src/ansys/edb/core/definition/padstack_def.py b/src/ansys/edb/core/definition/padstack_def.py index 5f9354693a..c63b15422e 100644 --- a/src/ansys/edb/core/definition/padstack_def.py +++ b/src/ansys/edb/core/definition/padstack_def.py @@ -3,9 +3,9 @@ from ansys.api.edb.v1 import padstack_def_pb2_grpc import ansys.api.edb.v1.padstack_def_pb2 as pb -from ansys.edb.core.inner import ObjBase from ansys.edb.core.definition.padstack_def_data import PadstackDefData from ansys.edb.core.edb_defs import DefinitionObjType +from ansys.edb.core.inner import ObjBase from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/definition/rlc_component_property.py b/src/ansys/edb/core/definition/rlc_component_property.py index e15b72b2c2..b315ee0e73 100644 --- a/src/ansys/edb/core/definition/rlc_component_property.py +++ b/src/ansys/edb/core/definition/rlc_component_property.py @@ -3,8 +3,8 @@ from ansys.api.edb.v1.rlc_component_property_pb2_grpc import RLCComponentPropertyServiceStub import google.protobuf.empty_pb2 as empty_pb2 -from ansys.edb.core.inner import messages from ansys.edb.core.definition.component_property import ComponentProperty +from ansys.edb.core.inner import messages from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/definition/solder_ball_property.py b/src/ansys/edb/core/definition/solder_ball_property.py index 1ecadacdee..d3ecefb7e0 100644 --- a/src/ansys/edb/core/definition/solder_ball_property.py +++ b/src/ansys/edb/core/definition/solder_ball_property.py @@ -5,6 +5,11 @@ from ansys.api.edb.v1.solder_ball_property_pb2_grpc import SolderBallPropertyServiceStub import google.protobuf.empty_pb2 as empty_pb2 +from ansys.edb.core.definition.padstack_def_data import ( + SolderballPlacement, + SolderballShape, + _PadstackDefDataQueryBuilder, +) from ansys.edb.core.inner import ObjBase from ansys.edb.core.inner.messages import ( edb_obj_message, @@ -12,11 +17,6 @@ value_message, value_property_message, ) -from ansys.edb.core.definition.padstack_def_data import ( - SolderballPlacement, - SolderballShape, - _PadstackDefDataQueryBuilder, -) from ansys.edb.core.session import StubAccessor, StubType from ansys.edb.core.utility import Value diff --git a/src/ansys/edb/core/geometry/polygon_data.py b/src/ansys/edb/core/geometry/polygon_data.py index bb69460a6a..420826c113 100644 --- a/src/ansys/edb/core/geometry/polygon_data.py +++ b/src/ansys/edb/core/geometry/polygon_data.py @@ -7,8 +7,8 @@ from ansys.api.edb.v1 import edb_defs_pb2, point_data_pb2, polygon_data_pb2_grpc from ansys.edb.core import session -from ansys.edb.core.inner import messages, parser from ansys.edb.core.geometry.arc_data import ArcData +from ansys.edb.core.inner import messages, parser from ansys.edb.core.utility import conversions diff --git a/src/ansys/edb/core/geometry/r_tree.py b/src/ansys/edb/core/geometry/r_tree.py index 46d4970364..f638184bb4 100644 --- a/src/ansys/edb/core/geometry/r_tree.py +++ b/src/ansys/edb/core/geometry/r_tree.py @@ -154,8 +154,8 @@ def search(self, box, bb_search): The testing region, described as a (lower-left, upper-right) box. bb_search: bool If true, an RTreeObj intersects when the bounding-box of it's \ - :class:`PolygonData ` intersects the testing object. If false, an explicit\ - intersection is required for a hit. + :class:`PolygonData ` \ + intersects the testing object. If false, an explicit intersection is required for a hit. Returns ------- diff --git a/src/ansys/edb/core/hierarchy/cell_instance.py b/src/ansys/edb/core/hierarchy/cell_instance.py index e1768c26ba..1ed5147b24 100644 --- a/src/ansys/edb/core/hierarchy/cell_instance.py +++ b/src/ansys/edb/core/hierarchy/cell_instance.py @@ -3,9 +3,9 @@ from ansys.api.edb.v1.cell_instance_pb2_grpc import CellInstanceServiceStub from ansys.edb.core import layout -from ansys.edb.core.inner import messages from ansys.edb.core.edb_defs import LayoutObjType from ansys.edb.core.hierarchy import hierarchy_obj +from ansys.edb.core.inner import messages from ansys.edb.core.session import StubAccessor, StubType from ansys.edb.core.utility import Transform3D, Value @@ -117,7 +117,8 @@ def placement_3d(self, value): @property def transform3d(self): - """:class:`Transform3D `: 3D transformation information of this cell instance. + """:class:`Transform3D `: \ + 3D transformation information of this cell instance. :obj:`placement_3d` must be True for the transformation to be applied. """ diff --git a/src/ansys/edb/core/hierarchy/component_group.py b/src/ansys/edb/core/hierarchy/component_group.py index 3c30696fb8..3674f58c8d 100644 --- a/src/ansys/edb/core/hierarchy/component_group.py +++ b/src/ansys/edb/core/hierarchy/component_group.py @@ -5,9 +5,9 @@ from ansys.api.edb.v1.component_group_pb2_grpc import ComponentGroupServiceStub import ansys.api.edb.v1.edb_defs_pb2 as edb_defs_pb2 -from ansys.edb.core.inner import messages from ansys.edb.core.definition import component_property from ansys.edb.core.hierarchy.group import Group +from ansys.edb.core.inner import messages from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/hierarchy/group.py b/src/ansys/edb/core/hierarchy/group.py index 6069396961..e842375a4f 100644 --- a/src/ansys/edb/core/hierarchy/group.py +++ b/src/ansys/edb/core/hierarchy/group.py @@ -3,9 +3,9 @@ from ansys.api.edb.v1.group_pb2 import GroupTypeMessage from ansys.api.edb.v1.group_pb2_grpc import GroupServiceStub -from ansys.edb.core.inner import messages from ansys.edb.core.edb_defs import LayoutObjType from ansys.edb.core.hierarchy.hierarchy_obj import HierarchyObj +from ansys.edb.core.inner import messages from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/hierarchy/hierarchy_obj.py b/src/ansys/edb/core/hierarchy/hierarchy_obj.py index 2dae5db10e..6555543f3a 100644 --- a/src/ansys/edb/core/hierarchy/hierarchy_obj.py +++ b/src/ansys/edb/core/hierarchy/hierarchy_obj.py @@ -1,7 +1,7 @@ """Hierarchy Obj.""" -from ansys.edb.core.inner import conn_obj, messages from ansys.edb.core.definition import component_def +from ansys.edb.core.inner import conn_obj, messages from ansys.edb.core.layer import Layer from ansys.edb.core.session import StubAccessor, StubType from ansys.edb.core.utility import Transform, Value @@ -60,8 +60,9 @@ def placement_layer(self, value): @property def location(self): - """:obj:`tuple` (:class:`Value `, :class:`Value `): \ - [x, y] location of the object on the :obj:`placement_layer`.""" + """:obj:`tuple` (:class:`Value `, \ + :class:`Value `): \ + [x, y] location of the object on the :obj:`placement_layer`.""" pnt_msg = self.__stub.GetLocation(self.msg) return [Value(pnt_msg.x), Value(pnt_msg.y)] diff --git a/src/ansys/edb/core/hierarchy/inst_array.py b/src/ansys/edb/core/hierarchy/inst_array.py index e6d911e278..e19872c8de 100644 --- a/src/ansys/edb/core/hierarchy/inst_array.py +++ b/src/ansys/edb/core/hierarchy/inst_array.py @@ -2,9 +2,9 @@ from ansys.api.edb.v1.inst_array_pb2_grpc import InstArrayServiceStub -from ansys.edb.core.inner import messages, parser from ansys.edb.core.edb_defs import LayoutObjType from ansys.edb.core.hierarchy import cell_instance +from ansys.edb.core.inner import messages, parser from ansys.edb.core.session import StubAccessor, StubType from ansys.edb.core.utility import Value diff --git a/src/ansys/edb/core/hierarchy/netlist_model.py b/src/ansys/edb/core/hierarchy/netlist_model.py index 8a70ef3a55..aea495c0ff 100644 --- a/src/ansys/edb/core/hierarchy/netlist_model.py +++ b/src/ansys/edb/core/hierarchy/netlist_model.py @@ -1,6 +1,6 @@ """Netlist Model.""" -from ansys.edb.core.inner import messages from ansys.edb.core.hierarchy.model import Model +from ansys.edb.core.inner import messages from ansys.edb.core.session import NetlistModelServiceStub, StubAccessor, StubType diff --git a/src/ansys/edb/core/hierarchy/pin_group.py b/src/ansys/edb/core/hierarchy/pin_group.py index 8c292dac5c..f67501c607 100644 --- a/src/ansys/edb/core/hierarchy/pin_group.py +++ b/src/ansys/edb/core/hierarchy/pin_group.py @@ -1,7 +1,7 @@ """Pin Group.""" -from ansys.edb.core.inner import ObjBase, messages from ansys.edb.core.edb_defs import LayoutObjType +from ansys.edb.core.inner import ObjBase, messages from ansys.edb.core.primitive import PadstackInstance from ansys.edb.core.session import StubAccessor, StubType @@ -80,7 +80,8 @@ def name(self): @property def pins(self): - """:obj:`list` of :class:`PadstackInstances `: List of padstack instances. + """:obj:`list` of :class:`PadstackInstances `: \ + List of padstack instances. Read-Only. """ diff --git a/src/ansys/edb/core/hierarchy/pin_pair_model.py b/src/ansys/edb/core/hierarchy/pin_pair_model.py index 860e217917..9038ea2b84 100644 --- a/src/ansys/edb/core/hierarchy/pin_pair_model.py +++ b/src/ansys/edb/core/hierarchy/pin_pair_model.py @@ -2,8 +2,8 @@ import google.protobuf.empty_pb2 as empty_pb2 -from ansys.edb.core.inner import messages, parser from ansys.edb.core.hierarchy.model import Model +from ansys.edb.core.inner import messages, parser from ansys.edb.core.session import PinPairModelServiceStub, StubAccessor, StubType diff --git a/src/ansys/edb/core/hierarchy/sparameter_model.py b/src/ansys/edb/core/hierarchy/sparameter_model.py index 8e8627e14f..8a9c8d9869 100644 --- a/src/ansys/edb/core/hierarchy/sparameter_model.py +++ b/src/ansys/edb/core/hierarchy/sparameter_model.py @@ -1,6 +1,6 @@ """S-Parameter Model.""" -from ansys.edb.core.inner import messages from ansys.edb.core.hierarchy.model import Model +from ansys.edb.core.inner import messages from ansys.edb.core.session import SParameterModelServiceStub, StubAccessor, StubType diff --git a/src/ansys/edb/core/hierarchy/spice_model.py b/src/ansys/edb/core/hierarchy/spice_model.py index 81f9f524b0..3822d57aab 100644 --- a/src/ansys/edb/core/hierarchy/spice_model.py +++ b/src/ansys/edb/core/hierarchy/spice_model.py @@ -1,6 +1,6 @@ """SPICE Model.""" -from ansys.edb.core.inner import messages from ansys.edb.core.hierarchy.model import Model +from ansys.edb.core.inner import messages from ansys.edb.core.session import SpiceModelServiceStub, StubAccessor, StubType diff --git a/src/ansys/edb/core/hierarchy/structure3d.py b/src/ansys/edb/core/hierarchy/structure3d.py index 2cf42cc749..60eb3146b5 100644 --- a/src/ansys/edb/core/hierarchy/structure3d.py +++ b/src/ansys/edb/core/hierarchy/structure3d.py @@ -5,8 +5,8 @@ import ansys.api.edb.v1.structure3d_pb2 as structure3d_pb2 from ansys.api.edb.v1.structure3d_pb2_grpc import Structure3DServiceStub -from ansys.edb.core.inner import messages from ansys.edb.core.hierarchy.group import Group +from ansys.edb.core.inner import messages from ansys.edb.core.session import StubAccessor, StubType from ansys.edb.core.utility import Value diff --git a/src/ansys/edb/core/hierarchy/via_group.py b/src/ansys/edb/core/hierarchy/via_group.py index fc70207049..cc7df6aed2 100644 --- a/src/ansys/edb/core/hierarchy/via_group.py +++ b/src/ansys/edb/core/hierarchy/via_group.py @@ -2,8 +2,8 @@ from ansys.api.edb.v1.via_group_pb2_grpc import ViaGroupServiceStub -from ansys.edb.core.inner import messages, parser from ansys.edb.core.hierarchy.group import Group +from ansys.edb.core.inner import messages, parser from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/inner/conn_obj.py b/src/ansys/edb/core/inner/conn_obj.py index 4c8a6cfa7e..87aafe1930 100644 --- a/src/ansys/edb/core/inner/conn_obj.py +++ b/src/ansys/edb/core/inner/conn_obj.py @@ -1,8 +1,8 @@ """ConnObj.""" from ansys.api.edb.v1 import connectable_pb2 -from ansys.edb.core.inner import layout_obj, messages from ansys.edb.core.edb_defs import LayoutObjType +from ansys.edb.core.inner import layout_obj, messages from ansys.edb.core.layout import mcad_model as mm from ansys.edb.core.session import ConnectableServiceStub, StubAccessor, StubType @@ -99,7 +99,8 @@ def edb_uid(self): @property def component(self): - """:class:`ComponentGroup `: Component of the :term:`Connectable` object.""" + """:class:`ComponentGroup `: \ + Component of the :term:`Connectable` object.""" from ansys.edb.core.hierarchy import ComponentGroup return ComponentGroup(self.__stub.GetComponent(self.msg)) diff --git a/src/ansys/edb/core/inner/layout_obj.py b/src/ansys/edb/core/inner/layout_obj.py index 4cf754fef4..dfe0fb3968 100644 --- a/src/ansys/edb/core/inner/layout_obj.py +++ b/src/ansys/edb/core/inner/layout_obj.py @@ -2,9 +2,9 @@ import ansys.api.edb.v1.layout_obj_pb2 as layout_obj_pb2 +from ansys.edb.core.edb_defs import LayoutObjType from ansys.edb.core.inner import ObjBase import ansys.edb.core.inner.messages as messages -from ansys.edb.core.edb_defs import LayoutObjType from ansys.edb.core.layout import layout from ansys.edb.core.session import LayoutObjServiceStub, StubAccessor, StubType diff --git a/src/ansys/edb/core/layer/layer.py b/src/ansys/edb/core/layer/layer.py index 64635045ec..b7d279c490 100644 --- a/src/ansys/edb/core/layer/layer.py +++ b/src/ansys/edb/core/layer/layer.py @@ -5,13 +5,13 @@ import ansys.api.edb.v1.layer_pb2 as layer_pb2 from ansys.api.edb.v1.layer_pb2_grpc import LayerServiceStub +from ansys.edb.core.edb_defs import LayoutObjType from ansys.edb.core.inner import ObjBase from ansys.edb.core.inner.messages import ( get_product_property_ids_message, get_product_property_message, set_product_property_message, ) -from ansys.edb.core.edb_defs import LayoutObjType from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/layer/stackup_layer.py b/src/ansys/edb/core/layer/stackup_layer.py index 8a87363bbe..cdabb858b7 100644 --- a/src/ansys/edb/core/layer/stackup_layer.py +++ b/src/ansys/edb/core/layer/stackup_layer.py @@ -274,7 +274,6 @@ def use_solver_properties(self): @use_solver_properties.setter def use_solver_properties(self, use_solver_properties): - get_stackup_layer_stub().SetUseSolverProperties( stackup_layer_pb2.SetLayerPropEnabledMessage( layer=self.msg, enabled=use_solver_properties diff --git a/src/ansys/edb/core/layout/cell.py b/src/ansys/edb/core/layout/cell.py index 500a11dd00..41973f47c1 100644 --- a/src/ansys/edb/core/layout/cell.py +++ b/src/ansys/edb/core/layout/cell.py @@ -6,8 +6,8 @@ from ansys.api.edb.v1.cell_pb2_grpc import CellServiceStub import ansys.api.edb.v1.edb_defs_pb2 as edb_defs_pb2 -from ansys.edb.core.inner import ObjBase, messages, variable_server from ansys.edb.core.edb_defs import LayoutObjType +from ansys.edb.core.inner import ObjBase, messages, variable_server from ansys.edb.core.layout import layout from ansys.edb.core.primitive import Primitive from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/layout/layout.py b/src/ansys/edb/core/layout/layout.py index 98b25c8f29..795fc9e5f9 100644 --- a/src/ansys/edb/core/layout/layout.py +++ b/src/ansys/edb/core/layout/layout.py @@ -3,9 +3,9 @@ from ansys.api.edb.v1 import layout_pb2 from ansys.api.edb.v1.layout_pb2_grpc import LayoutServiceStub -from ansys.edb.core.inner import ObjBase, messages, parser, utils, variable_server from ansys.edb.core.edb_defs import LayoutObjType from ansys.edb.core.hierarchy import CellInstance, Group, PinGroup +from ansys.edb.core.inner import ObjBase, messages, parser, utils, variable_server from ansys.edb.core.layer import LayerCollection import ansys.edb.core.layout as layout from ansys.edb.core.layout.mcad_model import McadModel @@ -83,7 +83,8 @@ def padstack_instances(self): @property def terminals(self): - """:obj:`list` of :class:`Terminal ` : List of all the terminals in this layout. + """:obj:`list` of :class:`Terminal ` : \ + List of all the terminals in this layout. Read-Only. """ @@ -91,8 +92,8 @@ def terminals(self): @property def cell_instances(self): - """:obj:`list` of :class:`CellInstance ` : List of the cell instances in \ - this layout. + """:obj:`list` of :class:`CellInstance ` : \ + List of the cell instances in this layout. Read-Only. """ @@ -124,8 +125,8 @@ def net_classes(self): @property def differential_pairs(self): - """:obj:`list` of :class:`DifferentialPair ` : List of all the differential \ - pairs in this layout. + """:obj:`list` of :class:`DifferentialPair ` : \ + List of all the differential pairs in this layout. Read-Only. """ @@ -142,8 +143,8 @@ def pin_groups(self): @property def voltage_regulators(self): - """:obj:`list` of :class:`VoltageRegulator ` : List of all the voltage \ - regulators in this layout. + """:obj:`list` of :class:`VoltageRegulator ` : \ + List of all the voltage regulators in this layout. Read-Only. """ @@ -151,8 +152,8 @@ def voltage_regulators(self): @property def extended_nets(self): - """:obj:`list` of :class:`ExtendedNet ` : List of all the extended nets in this \ - layout. + """:obj:`list` of :class:`ExtendedNet ` : \ + List of all the extended nets in this layout. Read-Only. """ diff --git a/src/ansys/edb/core/layout/voltage_regulator.py b/src/ansys/edb/core/layout/voltage_regulator.py index 0121b15ccf..1ca7c8bbb3 100644 --- a/src/ansys/edb/core/layout/voltage_regulator.py +++ b/src/ansys/edb/core/layout/voltage_regulator.py @@ -1,8 +1,8 @@ """Voltage regulator.""" import ansys.api.edb.v1.voltage_regulator_pb2 as vr_pb2 -from ansys.edb.core.inner import conn_obj, messages from ansys.edb.core.edb_defs import LayoutObjType +from ansys.edb.core.inner import conn_obj, messages from ansys.edb.core.primitive import PadstackInstance from ansys.edb.core.session import StubAccessor, StubType from ansys.edb.core.utility import Value diff --git a/src/ansys/edb/core/layout_instance/__init__.py b/src/ansys/edb/core/layout_instance/__init__.py index d76027c3b0..2305ce4f8d 100644 --- a/src/ansys/edb/core/layout_instance/__init__.py +++ b/src/ansys/edb/core/layout_instance/__init__.py @@ -3,6 +3,10 @@ from ansys.edb.core.layout_instance.layout_instance import LayoutInstance from ansys.edb.core.layout_instance.layout_instance_context import LayoutInstanceContext from ansys.edb.core.layout_instance.layout_obj_instance import LayoutObjInstance -from ansys.edb.core.layout_instance.layout_obj_instance_2d_geometry import LayoutObjInstance2DGeometry -from ansys.edb.core.layout_instance.layout_obj_instance_3d_geometry import LayoutObjInstance3DGeometry +from ansys.edb.core.layout_instance.layout_obj_instance_2d_geometry import ( + LayoutObjInstance2DGeometry, +) +from ansys.edb.core.layout_instance.layout_obj_instance_3d_geometry import ( + LayoutObjInstance3DGeometry, +) from ansys.edb.core.layout_instance.layout_obj_instance_geometry import LayoutObjInstanceGeometry diff --git a/src/ansys/edb/core/layout_instance/layout_instance.py b/src/ansys/edb/core/layout_instance/layout_instance.py index 08e9094af2..8de05cfb16 100644 --- a/src/ansys/edb/core/layout_instance/layout_instance.py +++ b/src/ansys/edb/core/layout_instance/layout_instance.py @@ -1,6 +1,7 @@ """Layout Instance.""" import ansys.api.edb.v1.layout_instance_pb2 as layout_instance_pb2 +from ansys.edb.core.geometry import PointData from ansys.edb.core.inner import ObjBase, utils from ansys.edb.core.inner.messages import ( layer_ref_message, @@ -9,7 +10,6 @@ polygon_data_message, strings_message, ) -from ansys.edb.core.geometry import PointData from ansys.edb.core.layout_instance.layout_obj_instance import LayoutObjInstance from ansys.edb.core.session import LayoutInstanceServiceStub, StubAccessor, StubType @@ -116,9 +116,9 @@ def get_connected_objects(self, origin_layout_obj_inst, touching_only): from. touching_only : bool If touching_only is true, only :class:`layout object instances ` touching \ - origin_layout_obj_inst on the placement :class:`layer ` of origin_layout_obj_inst \ - will be returned. Otherwise, all layout object instances across all layers that are electrically connected \ - to origin_layout_obj_inst will be returned. + origin_layout_obj_inst on the placement :class:`layer ` of \ + origin_layout_obj_inst will be returned. Otherwise, all layout object instances across all layers that \ + are electrically connected to origin_layout_obj_inst will be returned. Returns ------- diff --git a/src/ansys/edb/core/layout_instance/layout_obj_instance.py b/src/ansys/edb/core/layout_instance/layout_obj_instance.py index 76c144347f..aae0941ea9 100644 --- a/src/ansys/edb/core/layout_instance/layout_obj_instance.py +++ b/src/ansys/edb/core/layout_instance/layout_obj_instance.py @@ -5,8 +5,12 @@ from ansys.edb.core.inner.messages import bool_property_message, layer_ref_property_message from ansys.edb.core.layer import Layer from ansys.edb.core.layout_instance.layout_instance_context import LayoutInstanceContext -from ansys.edb.core.layout_instance.layout_obj_instance_2d_geometry import LayoutObjInstance2DGeometry -from ansys.edb.core.layout_instance.layout_obj_instance_3d_geometry import LayoutObjInstance3DGeometry +from ansys.edb.core.layout_instance.layout_obj_instance_2d_geometry import ( + LayoutObjInstance2DGeometry, +) +from ansys.edb.core.layout_instance.layout_obj_instance_3d_geometry import ( + LayoutObjInstance3DGeometry, +) from ansys.edb.core.session import LayoutObjInstanceServiceStub, StubAccessor, StubType @@ -29,9 +33,14 @@ class LayoutObjInstance(ObjBase): @property def layers(self): - r""":obj:`list`\[:class:`Layer `\]: Layers this layout object instance has geometry on. + """Return a list of Layer instances. - Read-Only. + This list contains the :class:`Layer ` instances that this layout + object instance has geometry on. + + Returns + ------- + list[ansys.edb.core.layer.Layer] """ return [Layer(msg).cast() for msg in self.__stub.GetLayers(self.msg).items] @@ -53,10 +62,10 @@ def get_geometries(self, layer): def context(self): r""":obj:`list`\[:obj:`str`\]: List of strings representing the context of the layout object instance. - The list of strings is a list of :class:`cell instance ` names representing \ - the hierarchy level this layout obj instance's :class:`context ` resides on. The the \ - first entry in the list represents the top level context and the last entry represents the context the layout \ - obj instance exists in. + The list of strings is a list of :class:`cell instance ` names \ + representing the hierarchy level this layout obj instance's :class:`context ` \ + resides on. The the first entry in the list represents the top level context and the last entry \ + represents the context the layout obj instance exists in. Read-Only """ diff --git a/src/ansys/edb/core/layout_instance/layout_obj_instance_3d_geometry.py b/src/ansys/edb/core/layout_instance/layout_obj_instance_3d_geometry.py index 04e79a4963..1082a658f1 100644 --- a/src/ansys/edb/core/layout_instance/layout_obj_instance_3d_geometry.py +++ b/src/ansys/edb/core/layout_instance/layout_obj_instance_3d_geometry.py @@ -1,8 +1,8 @@ """Layout Obj Instance 3D Geometry.""" +from ansys.edb.core.geometry import Triangle3DData from ansys.edb.core.inner import utils from ansys.edb.core.inner.parser import to_point3d_data -from ansys.edb.core.geometry import Triangle3DData from ansys.edb.core.layout_instance.layout_obj_instance_geometry import LayoutObjInstanceGeometry from ansys.edb.core.session import LayoutObjInstance3DGeometryServiceStub, StubAccessor, StubType @@ -16,9 +16,14 @@ class LayoutObjInstance3DGeometry(LayoutObjInstanceGeometry): @property def tesselation_data(self): - r""":obj:`list`\[:class:`ansys.edb.core.geometry.Triangle3DData`\]: The underlying tessellation data of the geometry. + """Return a list of Triangle3DData instances. + + This list contains :class:`Triangle3DData ` instances + that correspond to the underlying tessellation data of the geometry. - Read-Only. + Returns + ------- + list[ansys.edb.core.geometry.Triangle3DData] """ tesselation_data = self.__stub.GetTesselationData(self.msg) diff --git a/src/ansys/edb/core/net/net.py b/src/ansys/edb/core/net/net.py index c5eb8e0a1f..e1d68d646f 100644 --- a/src/ansys/edb/core/net/net.py +++ b/src/ansys/edb/core/net/net.py @@ -1,7 +1,7 @@ """Net.""" -from ansys.edb.core.inner import layout_obj, messages from ansys.edb.core.edb_defs import LayoutObjType +from ansys.edb.core.inner import layout_obj, messages from ansys.edb.core.net.extended_net import ExtendedNet from ansys.edb.core.net.net_class import NetClass from ansys.edb.core.primitive import PadstackInstance, Primitive @@ -90,26 +90,40 @@ def primitives(self): @property def padstack_instances(self): - r""" - :obj:`list`\[:class:`PadstackInstance `\]: List of padstacks on this net. + """Return a list of PadstackInstance instances. - Read-Only. + This list contains the :class:`PadstackInstance ` \ + instances on this net object instance. + + Returns + ------- + list[ansys.edb.core.primitive.PadstackInstance] """ return [PadstackInstance(lo) for lo in self._layout_objs(LayoutObjType.PADSTACK_INSTANCE)] @property def terminals(self): - r""":obj:`list`\[:class:`Terminal `\]: List of all terminals on this net. + """Return a list of Terminal instances. - Read-Only. + This list contains the :class:`Terminal ` \ + instances on this net object instance. + + Returns + ------- + list[ansys.edb.core.terminal.Terminal] """ return [Terminal(lo).cast() for lo in self._layout_objs(LayoutObjType.TERMINAL)] @property def terminal_instances(self): - r""":obj:`list`\[:class:`TerminalInstance `\]: terminal instances on net. + """Return a list of TerminalInstance instances. - Read-Only. + This list contains the :class:`TerminalInstance ` instances \ + that are on this net object instance. + + Returns + ------- + list[ansys.edb.core.layer.Layer] """ return [TerminalInstance(lo) for lo in self._layout_objs(LayoutObjType.TERMINAL_INSTANCE)] diff --git a/src/ansys/edb/core/net/net_class.py b/src/ansys/edb/core/net/net_class.py index 66748b4411..0553d7dd55 100644 --- a/src/ansys/edb/core/net/net_class.py +++ b/src/ansys/edb/core/net/net_class.py @@ -2,8 +2,8 @@ import ansys.api.edb.v1.netclass_pb2 as nc_pb2 -from ansys.edb.core.inner import layout_obj, messages from ansys.edb.core.edb_defs import LayoutObjType +from ansys.edb.core.inner import layout_obj, messages from ansys.edb.core.session import StubAccessor, StubType diff --git a/src/ansys/edb/core/primitive/primitive.py b/src/ansys/edb/core/primitive/primitive.py index 97535e0c2c..becf7b31b9 100644 --- a/src/ansys/edb/core/primitive/primitive.py +++ b/src/ansys/edb/core/primitive/primitive.py @@ -24,9 +24,9 @@ ) from ansys.edb.core import hierarchy, terminal -from ansys.edb.core.inner import conn_obj, messages, parser from ansys.edb.core.definition.padstack_def import PadstackDef from ansys.edb.core.edb_defs import LayoutObjType +from ansys.edb.core.inner import conn_obj, messages, parser from ansys.edb.core.layer import Layer from ansys.edb.core.session import StubAccessor, StubType from ansys.edb.core.utility import Value diff --git a/src/ansys/edb/core/simulation_setup/__init__.py b/src/ansys/edb/core/simulation_setup/__init__.py index dd6c0ec075..dc1d1d73b5 100644 --- a/src/ansys/edb/core/simulation_setup/__init__.py +++ b/src/ansys/edb/core/simulation_setup/__init__.py @@ -45,7 +45,9 @@ SimulationSetupType, SweepData, ) -from ansys.edb.core.simulation_setup.siwave_dcir_simulation_settings import SIWaveDCIRSimulationSettings +from ansys.edb.core.simulation_setup.siwave_dcir_simulation_settings import ( + SIWaveDCIRSimulationSettings, +) from ansys.edb.core.simulation_setup.siwave_dcir_simulation_setup import SIWaveDCIRSimulationSetup from ansys.edb.core.simulation_setup.siwave_simulation_settings import ( SIWaveAdvancedSettings, diff --git a/src/ansys/edb/core/simulation_setup/simulation_settings.py b/src/ansys/edb/core/simulation_setup/simulation_settings.py index dbd03071e6..a33ad28e5f 100644 --- a/src/ansys/edb/core/simulation_setup/simulation_settings.py +++ b/src/ansys/edb/core/simulation_setup/simulation_settings.py @@ -79,7 +79,7 @@ def do_lamda_refine(self, do_lamda_refine): @property def lamda_target(self): - """:obj:`float`: Target lamda value for lambda refinement.""" + """:obj:`float`: Target lambda value for lambda refinement.""" return self.__stub.GetLamdaTarget(self.msg).value @lamda_target.setter diff --git a/src/ansys/edb/core/simulation_setup/siwave_dcir_simulation_setup.py b/src/ansys/edb/core/simulation_setup/siwave_dcir_simulation_setup.py index 4af2fd7a95..2ddc858e7c 100644 --- a/src/ansys/edb/core/simulation_setup/siwave_dcir_simulation_setup.py +++ b/src/ansys/edb/core/simulation_setup/siwave_dcir_simulation_setup.py @@ -1,7 +1,9 @@ """SIWave Simulation Setup.""" from ansys.edb.core.simulation_setup.simulation_setup import SimulationSetup, SimulationSetupType -from ansys.edb.core.simulation_setup.siwave_dcir_simulation_settings import SIWaveDCIRSimulationSettings +from ansys.edb.core.simulation_setup.siwave_dcir_simulation_settings import ( + SIWaveDCIRSimulationSettings, +) class SIWaveDCIRSimulationSetup(SimulationSetup): diff --git a/src/ansys/edb/core/terminal/terminals.py b/src/ansys/edb/core/terminal/terminals.py index b4981588fc..562fdf796c 100644 --- a/src/ansys/edb/core/terminal/terminals.py +++ b/src/ansys/edb/core/terminal/terminals.py @@ -6,9 +6,9 @@ import ansys.api.edb.v1.term_pb2 as term_pb2 from ansys.edb.core import hierarchy, primitive -from ansys.edb.core.inner import ObjBase, TypeField, conn_obj, messages, parser from ansys.edb.core.edb_defs import LayoutObjType from ansys.edb.core.geometry import ArcData +from ansys.edb.core.inner import ObjBase, TypeField, conn_obj, messages, parser from ansys.edb.core.layer import Layer from ansys.edb.core.session import StubAccessor, StubType from ansys.edb.core.utility import PortPostProcessingProp, Value diff --git a/src/ansys/edb/core/utility/value.py b/src/ansys/edb/core/utility/value.py index 54cf2267b5..c92dcfb232 100644 --- a/src/ansys/edb/core/utility/value.py +++ b/src/ansys/edb/core/utility/value.py @@ -17,7 +17,8 @@ class Value: val : :term:`ValueLike` The value assigned to the new Value _owner : None, :class:`Database `, :class:`Cell `, - :class:`Layout `, :class:`ComponentDef ` + :class:`Layout `, \ + :class:`ComponentDef ` Notes ----- diff --git a/tests/e2e/integration_tests/test_spiral_inductor.py b/tests/e2e/integration_tests/test_spiral_inductor.py index 80f8220dc4..fa6d294f3e 100644 --- a/tests/e2e/integration_tests/test_spiral_inductor.py +++ b/tests/e2e/integration_tests/test_spiral_inductor.py @@ -8,7 +8,13 @@ from ansys.edb.core.definition import MaterialDef, MaterialProperty from ansys.edb.core.geometry import PolygonData from ansys.edb.core.hierarchy import ViaGroup -from ansys.edb.core.layer import LayerCollection, LayerCollectionMode, LayerType, StackupLayer, ViaLayer +from ansys.edb.core.layer import ( + LayerCollection, + LayerCollectionMode, + LayerType, + StackupLayer, + ViaLayer, +) from ansys.edb.core.layout import Cell, CellType from ansys.edb.core.net import Net from ansys.edb.core.primitive import ( diff --git a/tests/mock/test_arc_data.py b/tests/mock/test_arc_data.py index b0d618b017..84a5f23357 100644 --- a/tests/mock/test_arc_data.py +++ b/tests/mock/test_arc_data.py @@ -7,6 +7,7 @@ from ansys.edb.core import geometry, utility + @pytest.mark.parametrize( "args, kwargs, expect_call", [