pyedb 0.5.dev0__py3-none-any.whl → 0.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pyedb might be problematic. Click here for more details.
- pyedb/__init__.py +2 -3
- pyedb/dotnet/application/Variables.py +22 -0
- pyedb/dotnet/edb.py +46 -9
- pyedb/dotnet/edb_core/cell/hierarchy/model.py +22 -0
- pyedb/dotnet/edb_core/components.py +23 -1
- pyedb/dotnet/edb_core/configuration.py +23 -2
- pyedb/dotnet/edb_core/definition/component_def.py +24 -3
- pyedb/dotnet/edb_core/definition/component_model.py +22 -0
- pyedb/dotnet/edb_core/definition/definition_obj.py +24 -4
- pyedb/dotnet/edb_core/definition/definitions.py +22 -1
- pyedb/dotnet/edb_core/definition/package_def.py +23 -3
- pyedb/dotnet/edb_core/dotnet/database.py +22 -0
- pyedb/dotnet/edb_core/dotnet/layout.py +22 -0
- pyedb/dotnet/edb_core/dotnet/primitive.py +22 -0
- pyedb/dotnet/edb_core/edb_data/components_data.py +107 -2
- pyedb/dotnet/edb_core/edb_data/connectable.py +22 -0
- pyedb/dotnet/edb_core/edb_data/control_file.py +22 -0
- pyedb/dotnet/edb_core/edb_data/design_options.py +23 -0
- pyedb/dotnet/edb_core/edb_data/edbvalue.py +23 -0
- pyedb/dotnet/edb_core/edb_data/hfss_extent_info.py +22 -0
- pyedb/dotnet/edb_core/edb_data/hfss_simulation_setup_data.py +22 -0
- pyedb/dotnet/edb_core/edb_data/layer_data.py +22 -0
- pyedb/dotnet/edb_core/edb_data/nets_data.py +23 -1
- pyedb/dotnet/edb_core/edb_data/obj_base.py +23 -0
- pyedb/dotnet/edb_core/edb_data/padstacks_data.py +22 -0
- pyedb/dotnet/edb_core/edb_data/ports.py +22 -0
- pyedb/dotnet/edb_core/edb_data/primitives_data.py +62 -7
- pyedb/dotnet/edb_core/edb_data/simulation_configuration.py +22 -0
- pyedb/dotnet/edb_core/edb_data/simulation_setup.py +22 -0
- pyedb/dotnet/edb_core/edb_data/siwave_simulation_setup_data.py +22 -0
- pyedb/dotnet/edb_core/edb_data/sources.py +23 -3
- pyedb/dotnet/edb_core/edb_data/terminals.py +22 -0
- pyedb/dotnet/edb_core/edb_data/utilities.py +25 -2
- pyedb/dotnet/edb_core/edb_data/variables.py +23 -0
- pyedb/dotnet/edb_core/general.py +22 -0
- pyedb/dotnet/edb_core/hfss.py +22 -0
- pyedb/dotnet/edb_core/layout.py +33 -4
- pyedb/dotnet/edb_core/layout_validation.py +24 -2
- pyedb/dotnet/edb_core/materials.py +22 -0
- pyedb/dotnet/edb_core/net_class.py +22 -0
- pyedb/dotnet/edb_core/nets.py +22 -0
- pyedb/dotnet/edb_core/padstack.py +22 -0
- pyedb/dotnet/edb_core/siwave.py +22 -0
- pyedb/dotnet/edb_core/stackup.py +22 -0
- pyedb/edb_logger.py +22 -0
- pyedb/generic/constants.py +22 -0
- pyedb/generic/data_handlers.py +0 -1
- pyedb/generic/design_types.py +24 -0
- pyedb/generic/general_methods.py +22 -115
- pyedb/generic/plot.py +3 -13
- pyedb/generic/settings.py +22 -0
- pyedb/ipc2581/bom/bom.py +22 -0
- pyedb/ipc2581/bom/bom_item.py +22 -0
- pyedb/ipc2581/bom/characteristics.py +22 -0
- pyedb/ipc2581/bom/refdes.py +22 -0
- pyedb/ipc2581/content/color.py +22 -0
- pyedb/ipc2581/content/content.py +22 -0
- pyedb/ipc2581/content/dictionary_color.py +22 -0
- pyedb/ipc2581/content/dictionary_fill.py +22 -0
- pyedb/ipc2581/content/dictionary_line.py +22 -0
- pyedb/ipc2581/content/entry_color.py +22 -0
- pyedb/ipc2581/content/entry_line.py +22 -0
- pyedb/ipc2581/content/fill.py +22 -0
- pyedb/ipc2581/content/layer_ref.py +22 -0
- pyedb/ipc2581/content/standard_geometries_dictionary.py +22 -0
- pyedb/ipc2581/ecad/cad_data/assembly_drawing.py +22 -0
- pyedb/ipc2581/ecad/cad_data/cad_data.py +22 -0
- pyedb/ipc2581/ecad/cad_data/component.py +22 -0
- pyedb/ipc2581/ecad/cad_data/drill.py +22 -0
- pyedb/ipc2581/ecad/cad_data/feature.py +22 -0
- pyedb/ipc2581/ecad/cad_data/layer.py +22 -0
- pyedb/ipc2581/ecad/cad_data/layer_feature.py +22 -0
- pyedb/ipc2581/ecad/cad_data/logical_net.py +22 -0
- pyedb/ipc2581/ecad/cad_data/outline.py +22 -0
- pyedb/ipc2581/ecad/cad_data/package.py +22 -0
- pyedb/ipc2581/ecad/cad_data/padstack_def.py +22 -0
- pyedb/ipc2581/ecad/cad_data/padstack_hole_def.py +22 -0
- pyedb/ipc2581/ecad/cad_data/padstack_instance.py +22 -0
- pyedb/ipc2581/ecad/cad_data/padstack_pad_def.py +22 -0
- pyedb/ipc2581/ecad/cad_data/path.py +22 -0
- pyedb/ipc2581/ecad/cad_data/phy_net.py +22 -0
- pyedb/ipc2581/ecad/cad_data/pin.py +22 -0
- pyedb/ipc2581/ecad/cad_data/polygon.py +22 -0
- pyedb/ipc2581/ecad/cad_data/profile.py +22 -0
- pyedb/ipc2581/ecad/cad_data/stackup.py +22 -0
- pyedb/ipc2581/ecad/cad_data/stackup_group.py +22 -0
- pyedb/ipc2581/ecad/cad_data/stackup_layer.py +22 -0
- pyedb/ipc2581/ecad/cad_data/step.py +22 -0
- pyedb/ipc2581/ecad/cad_header.py +22 -0
- pyedb/ipc2581/ecad/ecad.py +22 -0
- pyedb/ipc2581/ecad/spec.py +22 -0
- pyedb/ipc2581/history_record.py +22 -0
- pyedb/ipc2581/ipc2581.py +22 -0
- pyedb/ipc2581/logistic_header.py +22 -0
- pyedb/misc/aedtlib_personalib_install.py +22 -0
- pyedb/misc/downloads.py +22 -0
- pyedb/misc/misc.py +22 -0
- pyedb/misc/siw_feature_config/emc/component_tags.py +3 -5
- pyedb/misc/siw_feature_config/emc/net_tags.py +1 -3
- pyedb/misc/siw_feature_config/emc/tag_library.py +5 -4
- pyedb/misc/siw_feature_config/emc/xml_generic.py +1 -2
- pyedb/misc/siw_feature_config/emc_rule_checker_settings.py +55 -30
- pyedb/siwave.py +6 -4
- {pyedb-0.5.dev0.dist-info → pyedb-0.6.0.dist-info}/METADATA +5 -7
- pyedb-0.6.0.dist-info/RECORD +130 -0
- pyedb-0.5.dev0.dist-info/RECORD +0 -130
- {pyedb-0.5.dev0.dist-info → pyedb-0.6.0.dist-info}/LICENSE +0 -0
- {pyedb-0.5.dev0.dist-info → pyedb-0.6.0.dist-info}/WHEEL +0 -0
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from pyedb.dotnet.edb_core.edb_data.obj_base import ObjBase
|
|
2
24
|
from pyedb.generic.general_methods import pyedb_function_handler
|
|
3
25
|
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
import copy
|
|
2
24
|
import os
|
|
3
25
|
import re
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
23
|
+
|
|
1
24
|
class EdbDesignOptions:
|
|
2
25
|
def __init__(self, active_cell):
|
|
3
26
|
self._active_cell = active_cell
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
23
|
+
|
|
1
24
|
class EdbValue:
|
|
2
25
|
"""Class defining Edb Value properties."""
|
|
3
26
|
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from pyedb.dotnet.edb_core.edb_data.edbvalue import EdbValue
|
|
2
24
|
from pyedb.dotnet.edb_core.edb_data.primitives_data import cast
|
|
3
25
|
from pyedb.dotnet.edb_core.general import convert_pytuple_to_nettuple
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from pyedb.dotnet.clr_module import Tuple
|
|
2
24
|
from pyedb.dotnet.edb_core.edb_data.simulation_setup import (
|
|
3
25
|
BaseSimulationSetup,
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from __future__ import absolute_import
|
|
2
24
|
|
|
3
25
|
import re
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from pyedb.dotnet.edb_core.dotnet.database import (
|
|
2
24
|
DifferentialPairDotNet,
|
|
3
25
|
ExtendedNetDotNet,
|
|
@@ -243,7 +265,7 @@ class EDBExtendedNetData(ExtendedNetDotNet):
|
|
|
243
265
|
if set(comp_obj.nets).issubset(set(nets)):
|
|
244
266
|
res[comp_name] = comp_obj
|
|
245
267
|
return res
|
|
246
|
-
|
|
268
|
+
|
|
247
269
|
@property
|
|
248
270
|
def shunt_rlc(self):
|
|
249
271
|
"""Dictionary of shunt RLC components."""
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
23
|
+
|
|
1
24
|
class ObjBase(object):
|
|
2
25
|
"""Manages EDB functionalities for a base object."""
|
|
3
26
|
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from collections import OrderedDict
|
|
2
24
|
import math
|
|
3
25
|
import re
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from pyedb.dotnet.edb_core.edb_data.terminals import (
|
|
2
24
|
BundleTerminal,
|
|
3
25
|
EdgeTerminal,
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
import math
|
|
2
24
|
|
|
3
25
|
from pyedb.dotnet.edb_core.dotnet.database import NetDotNet
|
|
@@ -118,7 +140,8 @@ class EDBPrimitivesMain(Connectable):
|
|
|
118
140
|
def layer(self):
|
|
119
141
|
"""Get the primitive edb layer object."""
|
|
120
142
|
try:
|
|
121
|
-
|
|
143
|
+
layer_name = self.primitive_object.GetLayer().GetName()
|
|
144
|
+
return self._pedb.stackup.layers[layer_name]
|
|
122
145
|
except AttributeError: # pragma: no cover
|
|
123
146
|
return None
|
|
124
147
|
|
|
@@ -131,7 +154,7 @@ class EDBPrimitivesMain(Connectable):
|
|
|
131
154
|
str
|
|
132
155
|
"""
|
|
133
156
|
try:
|
|
134
|
-
return self.layer.
|
|
157
|
+
return self.layer.name
|
|
135
158
|
except AttributeError: # pragma: no cover
|
|
136
159
|
return None
|
|
137
160
|
|
|
@@ -380,7 +403,8 @@ class EDBPrimitives(EDBPrimitivesMain):
|
|
|
380
403
|
|
|
381
404
|
Returns
|
|
382
405
|
-------
|
|
383
|
-
|
|
406
|
+
bool, :class:`dotnet.edb_core.edb_data.primitives.EDBPrimitives`
|
|
407
|
+
Polygon when successful, ``False`` when failed.
|
|
384
408
|
|
|
385
409
|
"""
|
|
386
410
|
if self.type == "Path":
|
|
@@ -388,6 +412,8 @@ class EDBPrimitives(EDBPrimitivesMain):
|
|
|
388
412
|
polygon = self._app.modeler.create_polygon(polygon_data, self.layer_name, [], self.net_name)
|
|
389
413
|
self.primitive_object.Delete()
|
|
390
414
|
return polygon
|
|
415
|
+
else:
|
|
416
|
+
return False
|
|
391
417
|
|
|
392
418
|
@pyedb_function_handler()
|
|
393
419
|
def subtract(self, primitives):
|
|
@@ -1005,6 +1031,35 @@ class EdbPolygon(EDBPrimitives, PolygonDotNet):
|
|
|
1005
1031
|
return cloned_poly
|
|
1006
1032
|
return False
|
|
1007
1033
|
|
|
1034
|
+
@pyedb_function_handler()
|
|
1035
|
+
def duplicate_across_layers(self, layers):
|
|
1036
|
+
"""Duplicate across layer a primitive object.
|
|
1037
|
+
|
|
1038
|
+
Parameters:
|
|
1039
|
+
|
|
1040
|
+
layers: list
|
|
1041
|
+
list of str, with layer names
|
|
1042
|
+
|
|
1043
|
+
Returns
|
|
1044
|
+
-------
|
|
1045
|
+
bool
|
|
1046
|
+
``True`` when successful, ``False`` when failed.
|
|
1047
|
+
"""
|
|
1048
|
+
for layer in layers:
|
|
1049
|
+
if layer in self._pedb.stackup.layers:
|
|
1050
|
+
duplicate_polygon = self._app.edb_api.cell.primitive.polygon.create(
|
|
1051
|
+
self._app.active_layout, layer, self.net, self.polygon_data.edb_api
|
|
1052
|
+
)
|
|
1053
|
+
if duplicate_polygon:
|
|
1054
|
+
for void in self.voids:
|
|
1055
|
+
duplicate_void = self._app.edb_api.cell.primitive.polygon.create(
|
|
1056
|
+
self._app.active_layout, layer, self.net, void.polygon_data.edb_api
|
|
1057
|
+
)
|
|
1058
|
+
duplicate_polygon.prim_obj.AddVoid(duplicate_void.prim_obj)
|
|
1059
|
+
else:
|
|
1060
|
+
return False
|
|
1061
|
+
return True
|
|
1062
|
+
|
|
1008
1063
|
@pyedb_function_handler
|
|
1009
1064
|
def move(self, vector):
|
|
1010
1065
|
"""Move polygon along a vector.
|
|
@@ -1082,12 +1137,12 @@ class EdbPolygon(EDBPrimitives, PolygonDotNet):
|
|
|
1082
1137
|
Scaling factor.
|
|
1083
1138
|
center : List of float or str [x,y], optional
|
|
1084
1139
|
If None scaling is done from polygon center.
|
|
1085
|
-
|
|
1140
|
+
|
|
1086
1141
|
Returns
|
|
1087
1142
|
-------
|
|
1088
1143
|
bool
|
|
1089
1144
|
``True`` when successful, ``False`` when failed.
|
|
1090
|
-
|
|
1145
|
+
|
|
1091
1146
|
Examples
|
|
1092
1147
|
--------
|
|
1093
1148
|
>>> edbapp = pyaedt.Edb("myproject.aedb")
|
|
@@ -1114,12 +1169,12 @@ class EdbPolygon(EDBPrimitives, PolygonDotNet):
|
|
|
1114
1169
|
@pyedb_function_handler
|
|
1115
1170
|
def move_layer(self, layer):
|
|
1116
1171
|
"""Move polygon to given layer.
|
|
1117
|
-
|
|
1172
|
+
|
|
1118
1173
|
Parameters
|
|
1119
1174
|
----------
|
|
1120
1175
|
layer : str
|
|
1121
1176
|
layer name.
|
|
1122
|
-
|
|
1177
|
+
|
|
1123
1178
|
Returns
|
|
1124
1179
|
-------
|
|
1125
1180
|
bool
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from collections import OrderedDict
|
|
2
24
|
import json
|
|
3
25
|
import os
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from pyedb.generic.general_methods import generate_unique_name, pyedb_function_handler
|
|
2
24
|
|
|
3
25
|
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
import warnings
|
|
2
24
|
|
|
3
25
|
from pyedb.dotnet.edb_core.edb_data.simulation_setup import BaseSimulationSetup
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
from pyedb.generic.constants import NodeType, SourceType
|
|
2
24
|
from pyedb.generic.general_methods import generate_unique_name, pyedb_function_handler
|
|
3
25
|
|
|
@@ -316,9 +338,7 @@ class PinGroup(object):
|
|
|
316
338
|
|
|
317
339
|
@pyedb_function_handler()
|
|
318
340
|
def _json_format(self):
|
|
319
|
-
dict_out = {"component": self.component,
|
|
320
|
-
"name": self.name, "net": self.net,
|
|
321
|
-
"node_type": self.node_type}
|
|
341
|
+
dict_out = {"component": self.component, "name": self.name, "net": self.net, "node_type": self.node_type}
|
|
322
342
|
return dict_out
|
|
323
343
|
|
|
324
344
|
@pyedb_function_handler()
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
1
23
|
import re
|
|
2
24
|
|
|
3
25
|
from pyedb.dotnet.edb_core.edb_data.connectable import Connectable
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
23
|
+
|
|
1
24
|
class EDBStatistics(object):
|
|
2
25
|
"""Statistics object
|
|
3
26
|
|
|
@@ -24,8 +47,8 @@ class EDBStatistics(object):
|
|
|
24
47
|
self._nb_layer = 0
|
|
25
48
|
self._stackup_thickness = 0.0
|
|
26
49
|
self._nb_vias = 0
|
|
27
|
-
self._occupying_ratio =
|
|
28
|
-
self._occupying_surface =
|
|
50
|
+
self._occupying_ratio = {}
|
|
51
|
+
self._occupying_surface = {}
|
|
29
52
|
self._layout_size = [0.0, 0.0, 0.0, 0.0]
|
|
30
53
|
self._nb_polygons = 0
|
|
31
54
|
self._nb_traces = 0
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
#
|
|
4
|
+
#
|
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
# furnished to do so, subject to the following conditions:
|
|
11
|
+
#
|
|
12
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
# copies or substantial portions of the Software.
|
|
14
|
+
#
|
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
# SOFTWARE.
|
|
22
|
+
|
|
23
|
+
|
|
1
24
|
class Variable:
|
|
2
25
|
"""Manages EDB methods for variable accessible from `Edb.Utility.VariableServer` property."""
|
|
3
26
|
|