pyedb 0.5.2__tar.gz → 0.6.0__tar.gz
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-0.5.2 → pyedb-0.6.0}/PKG-INFO +1 -1
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/__init__.py +2 -3
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/application/Variables.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb.py +42 -6
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/model.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/components.py +23 -1
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/configuration.py +23 -2
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/definition/component_def.py +24 -3
- pyedb-0.6.0/src/pyedb/dotnet/edb_core/definition/component_model.py +52 -0
- pyedb-0.6.0/src/pyedb/dotnet/edb_core/definition/definition_obj.py +38 -0
- pyedb-0.6.0/src/pyedb/dotnet/edb_core/definition/definitions.py +56 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/definition/package_def.py +23 -3
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/dotnet/database.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/dotnet/layout.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/dotnet/primitive.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/components_data.py +107 -2
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/connectable.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/control_file.py +22 -0
- pyedb-0.6.0/src/pyedb/dotnet/edb_core/edb_data/design_options.py +58 -0
- pyedb-0.6.0/src/pyedb/dotnet/edb_core/edb_data/edbvalue.py +68 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/hfss_extent_info.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/hfss_simulation_setup_data.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/layer_data.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/nets_data.py +23 -1
- pyedb-0.6.0/src/pyedb/dotnet/edb_core/edb_data/obj_base.py +51 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/padstacks_data.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/ports.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/primitives_data.py +62 -7
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/simulation_configuration.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/simulation_setup.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/siwave_simulation_setup_data.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/sources.py +23 -3
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/terminals.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/utilities.py +25 -2
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/variables.py +23 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/general.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/hfss.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/layout.py +33 -4
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/layout_validation.py +24 -2
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/materials.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/net_class.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/nets.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/padstack.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/siwave.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/stackup.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/edb_logger.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/generic/constants.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/generic/data_handlers.py +0 -1
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/generic/design_types.py +24 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/generic/general_methods.py +22 -2
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/generic/plot.py +3 -13
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/generic/settings.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/bom/bom.py +43 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/bom/bom_item.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/bom/characteristics.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/bom/refdes.py +38 -0
- pyedb-0.6.0/src/pyedb/ipc2581/content/color.py +60 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/content/content.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/content/dictionary_color.py +51 -0
- pyedb-0.6.0/src/pyedb/ipc2581/content/dictionary_fill.py +50 -0
- pyedb-0.6.0/src/pyedb/ipc2581/content/dictionary_line.py +52 -0
- pyedb-0.6.0/src/pyedb/ipc2581/content/entry_color.py +35 -0
- pyedb-0.6.0/src/pyedb/ipc2581/content/entry_line.py +36 -0
- pyedb-0.6.0/src/pyedb/ipc2581/content/fill.py +37 -0
- pyedb-0.6.0/src/pyedb/ipc2581/content/layer_ref.py +32 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/content/standard_geometries_dictionary.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/ecad/cad_data/assembly_drawing.py +48 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/cad_data.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/component.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/ecad/cad_data/drill.py +52 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/feature.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/ecad/cad_data/layer.py +63 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/layer_feature.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/ecad/cad_data/logical_net.py +54 -0
- pyedb-0.6.0/src/pyedb/ipc2581/ecad/cad_data/outline.py +47 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/package.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/padstack_def.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/ecad/cad_data/padstack_hole_def.py +46 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/padstack_instance.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/ecad/cad_data/padstack_pad_def.py +48 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/path.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/phy_net.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/ecad/cad_data/pin.py +53 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/polygon.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/profile.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/ecad/cad_data/stackup.py +53 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/stackup_group.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/ecad/cad_data/stackup_layer.py +43 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/step.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/ecad/cad_header.py +55 -0
- pyedb-0.6.0/src/pyedb/ipc2581/ecad/ecad.py +41 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/spec.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/history_record.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ipc2581.py +22 -0
- pyedb-0.6.0/src/pyedb/ipc2581/logistic_header.py +47 -0
- pyedb-0.6.0/src/pyedb/misc/aedtlib_personalib_install.py +36 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/misc/downloads.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/misc/misc.py +22 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/misc/siw_feature_config/emc/component_tags.py +3 -5
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/misc/siw_feature_config/emc/net_tags.py +1 -3
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/misc/siw_feature_config/emc/tag_library.py +5 -4
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/misc/siw_feature_config/emc/xml_generic.py +1 -2
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/misc/siw_feature_config/emc_rule_checker_settings.py +55 -30
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/siwave.py +6 -4
- pyedb-0.5.2/src/pyedb/dotnet/edb_core/definition/component_model.py +0 -30
- pyedb-0.5.2/src/pyedb/dotnet/edb_core/definition/definition_obj.py +0 -18
- pyedb-0.5.2/src/pyedb/dotnet/edb_core/definition/definitions.py +0 -35
- pyedb-0.5.2/src/pyedb/dotnet/edb_core/edb_data/design_options.py +0 -35
- pyedb-0.5.2/src/pyedb/dotnet/edb_core/edb_data/edbvalue.py +0 -45
- pyedb-0.5.2/src/pyedb/dotnet/edb_core/edb_data/obj_base.py +0 -28
- pyedb-0.5.2/src/pyedb/ipc2581/bom/bom.py +0 -21
- pyedb-0.5.2/src/pyedb/ipc2581/bom/refdes.py +0 -16
- pyedb-0.5.2/src/pyedb/ipc2581/content/color.py +0 -38
- pyedb-0.5.2/src/pyedb/ipc2581/content/dictionary_color.py +0 -29
- pyedb-0.5.2/src/pyedb/ipc2581/content/dictionary_fill.py +0 -28
- pyedb-0.5.2/src/pyedb/ipc2581/content/dictionary_line.py +0 -30
- pyedb-0.5.2/src/pyedb/ipc2581/content/entry_color.py +0 -13
- pyedb-0.5.2/src/pyedb/ipc2581/content/entry_line.py +0 -14
- pyedb-0.5.2/src/pyedb/ipc2581/content/fill.py +0 -15
- pyedb-0.5.2/src/pyedb/ipc2581/content/layer_ref.py +0 -10
- pyedb-0.5.2/src/pyedb/ipc2581/ecad/cad_data/assembly_drawing.py +0 -26
- pyedb-0.5.2/src/pyedb/ipc2581/ecad/cad_data/drill.py +0 -30
- pyedb-0.5.2/src/pyedb/ipc2581/ecad/cad_data/layer.py +0 -41
- pyedb-0.5.2/src/pyedb/ipc2581/ecad/cad_data/logical_net.py +0 -32
- pyedb-0.5.2/src/pyedb/ipc2581/ecad/cad_data/outline.py +0 -25
- pyedb-0.5.2/src/pyedb/ipc2581/ecad/cad_data/padstack_hole_def.py +0 -24
- pyedb-0.5.2/src/pyedb/ipc2581/ecad/cad_data/padstack_pad_def.py +0 -26
- pyedb-0.5.2/src/pyedb/ipc2581/ecad/cad_data/pin.py +0 -31
- pyedb-0.5.2/src/pyedb/ipc2581/ecad/cad_data/stackup.py +0 -31
- pyedb-0.5.2/src/pyedb/ipc2581/ecad/cad_data/stackup_layer.py +0 -21
- pyedb-0.5.2/src/pyedb/ipc2581/ecad/cad_header.py +0 -33
- pyedb-0.5.2/src/pyedb/ipc2581/ecad/ecad.py +0 -19
- pyedb-0.5.2/src/pyedb/ipc2581/logistic_header.py +0 -25
- pyedb-0.5.2/src/pyedb/misc/aedtlib_personalib_install.py +0 -14
- {pyedb-0.5.2 → pyedb-0.6.0}/LICENSE +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/README.md +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/pyproject.toml +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/application/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/clr_module.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/cell/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/definition/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/dotnet/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/dotnet/edb_core/edb_data/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/generic/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/generic/filesystem.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/generic/process.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/bom/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/content/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/ipc2581/ecad/cad_data/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/misc/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/misc/pyedb.runtimeconfig.json +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/misc/siw_feature_config/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/misc/siw_feature_config/emc/__init__.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/misc/utilities.py +0 -0
- {pyedb-0.5.2 → pyedb-0.6.0}/src/pyedb/modeler/geometry_operators.py +0 -0
|
@@ -44,10 +44,9 @@ deprecation_warning()
|
|
|
44
44
|
#
|
|
45
45
|
|
|
46
46
|
pyedb_path = os.path.dirname(__file__)
|
|
47
|
-
__version__ = "0.
|
|
47
|
+
__version__ = "0.6.0"
|
|
48
48
|
version = __version__
|
|
49
49
|
|
|
50
50
|
#
|
|
51
51
|
|
|
52
|
-
from pyedb.generic.design_types import Edb
|
|
53
|
-
from pyedb.generic.design_types import Siwave
|
|
52
|
+
from pyedb.generic.design_types import Edb, Siwave
|
|
@@ -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
|
"""
|
|
2
24
|
This module contains these classes: `CSVDataset`, `DataSet`, `Expression`, `Variable`, and `VariableManager`.
|
|
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
|
"""This module contains the ``Edb`` class.
|
|
2
24
|
|
|
3
25
|
This module is implicitly loaded in HFSS 3D Layout when launched.
|
|
@@ -191,10 +213,21 @@ class Edb(Database):
|
|
|
191
213
|
os.path.dirname(edbpath),
|
|
192
214
|
"pyedb_" + os.path.splitext(os.path.split(edbpath)[-1])[0] + ".log",
|
|
193
215
|
)
|
|
216
|
+
aedt_file = os.path.splitext(edbpath)[0] + ".aedt"
|
|
217
|
+
files = [aedt_file, aedt_file + ".lock"]
|
|
218
|
+
for file in files:
|
|
219
|
+
if os.path.isfile(file):
|
|
220
|
+
try:
|
|
221
|
+
shutil.rmtree(file)
|
|
222
|
+
self.logger.info(f"Removing {file} to allow loading EDB file.")
|
|
223
|
+
except:
|
|
224
|
+
self.logger.info(
|
|
225
|
+
f"Failed to delete {file} which is located at the same location as the EDB file."
|
|
226
|
+
)
|
|
194
227
|
|
|
195
228
|
if isaedtowned and (inside_desktop or settings.remote_rpc_session):
|
|
196
229
|
self.open_edb_inside_aedt()
|
|
197
|
-
elif edbpath[-3:] in ["brd", "mcm", "sip", "gds", "xml", "dxf", "tgz"]:
|
|
230
|
+
elif edbpath[-3:] in ["brd", "mcm", "sip", "gds", "xml", "dxf", "tgz", "anf"]:
|
|
198
231
|
self.edbpath = edbpath[:-4] + ".aedb"
|
|
199
232
|
working_dir = os.path.dirname(edbpath)
|
|
200
233
|
control_file = None
|
|
@@ -2290,9 +2323,9 @@ class Edb(Database):
|
|
|
2290
2323
|
list_prims = subtract(p, voids_data)
|
|
2291
2324
|
for prim in list_prims:
|
|
2292
2325
|
if not prim.IsNull():
|
|
2293
|
-
poly_to_create.append([prim, prim_1.
|
|
2326
|
+
poly_to_create.append([prim, prim_1.layer.name, net, list_void])
|
|
2294
2327
|
else:
|
|
2295
|
-
poly_to_create.append([p, prim_1.
|
|
2328
|
+
poly_to_create.append([p, prim_1.layer.name, net, list_void])
|
|
2296
2329
|
|
|
2297
2330
|
prims_to_delete.append(prim_1)
|
|
2298
2331
|
|
|
@@ -2318,8 +2351,10 @@ class Edb(Database):
|
|
|
2318
2351
|
|
|
2319
2352
|
for item in reference_paths:
|
|
2320
2353
|
clip_path(item)
|
|
2321
|
-
|
|
2322
|
-
|
|
2354
|
+
for prim in reference_prims: # removing multithreading as failing with new layer from primitive
|
|
2355
|
+
clean_prim(prim)
|
|
2356
|
+
# with ThreadPoolExecutor(number_of_threads) as pool:
|
|
2357
|
+
# pool.map(lambda item: clean_prim(item), reference_prims)
|
|
2323
2358
|
|
|
2324
2359
|
for el in poly_to_create:
|
|
2325
2360
|
self.modeler.create_polygon(el[0], el[1], net_name=el[2], voids=el[3])
|
|
@@ -4235,4 +4270,5 @@ class Edb(Database):
|
|
|
4235
4270
|
def definitions(self):
|
|
4236
4271
|
"""Definitions class."""
|
|
4237
4272
|
from pyedb.dotnet.edb_core.definition.definitions import Definitions
|
|
4238
|
-
|
|
4273
|
+
|
|
4274
|
+
return Definitions(self)
|
|
@@ -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
|
"""This module contains the `Components` class.
|
|
2
24
|
|
|
3
25
|
"""
|
|
@@ -8,10 +30,10 @@ import re
|
|
|
8
30
|
import warnings
|
|
9
31
|
|
|
10
32
|
from pyedb.dotnet.clr_module import String
|
|
33
|
+
from pyedb.dotnet.edb_core.definition.component_def import EDBComponentDef
|
|
11
34
|
from pyedb.dotnet.edb_core.edb_data.components_data import EDBComponent
|
|
12
35
|
from pyedb.dotnet.edb_core.edb_data.padstacks_data import EDBPadstackInstance
|
|
13
36
|
from pyedb.dotnet.edb_core.edb_data.sources import Source, SourceType
|
|
14
|
-
from pyedb.dotnet.edb_core.definition.component_def import EDBComponentDef
|
|
15
37
|
from pyedb.dotnet.edb_core.general import convert_py_list_to_net_list
|
|
16
38
|
from pyedb.dotnet.edb_core.padstack import EdbPadstacks
|
|
17
39
|
from pyedb.generic.general_methods import (
|
|
@@ -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 json
|
|
2
24
|
from pathlib import Path
|
|
3
25
|
|
|
@@ -95,12 +117,11 @@ class Configuration:
|
|
|
95
117
|
|
|
96
118
|
return True
|
|
97
119
|
|
|
98
|
-
|
|
99
120
|
@pyedb_function_handler
|
|
100
121
|
def _load_components(self):
|
|
101
122
|
"""Imports component information from json."""
|
|
102
123
|
|
|
103
|
-
for comp in self.data["components"]
|
|
124
|
+
for comp in self.data["components"]:
|
|
104
125
|
refdes = comp["reference_designator"]
|
|
105
126
|
part_type = comp["part_type"].lower()
|
|
106
127
|
if part_type == "resistor":
|
|
@@ -1,10 +1,30 @@
|
|
|
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 os
|
|
2
24
|
|
|
25
|
+
from pyedb.dotnet.edb_core.definition.component_model import NPortComponentModel
|
|
3
26
|
from pyedb.dotnet.edb_core.edb_data.obj_base import ObjBase
|
|
4
27
|
from pyedb.generic.general_methods import pyedb_function_handler
|
|
5
|
-
from pyedb.dotnet.edb_core.definition.component_model import (
|
|
6
|
-
NPortComponentModel
|
|
7
|
-
)
|
|
8
28
|
|
|
9
29
|
|
|
10
30
|
class EDBComponentDef(ObjBase):
|
|
@@ -65,6 +85,7 @@ class EDBComponentDef(ObjBase):
|
|
|
65
85
|
dict of :class:`EDBComponent`
|
|
66
86
|
"""
|
|
67
87
|
from pyedb.dotnet.edb_core.edb_data.components_data import EDBComponent
|
|
88
|
+
|
|
68
89
|
comp_list = [
|
|
69
90
|
EDBComponent(self._pedb, l)
|
|
70
91
|
for l in self._pedb.edb_api.cell.hierarchy.component.FindByComponentDef(
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
from pyedb.dotnet.edb_core.edb_data.obj_base import ObjBase
|
|
24
|
+
from pyedb.generic.general_methods import pyedb_function_handler
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ComponentModel(ObjBase):
|
|
28
|
+
"""Manages component model class."""
|
|
29
|
+
|
|
30
|
+
def __init__(self, pedb, edb_object):
|
|
31
|
+
super().__init__(pedb, edb_object)
|
|
32
|
+
self._model_type_mapping = {"PinPairModel": self._pedb.edb_api.cell}
|
|
33
|
+
|
|
34
|
+
@pyedb_function_handler()
|
|
35
|
+
def name(self):
|
|
36
|
+
"""Name of the component model."""
|
|
37
|
+
return self._edb_object.GetName()
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class NPortComponentModel(ComponentModel):
|
|
41
|
+
"""Class for n-port component models."""
|
|
42
|
+
|
|
43
|
+
def __init__(self, pedb, edb_object):
|
|
44
|
+
super().__init__(pedb, edb_object)
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
def reference_file(self):
|
|
48
|
+
return self._edb_object.GetReferenceFile()
|
|
49
|
+
|
|
50
|
+
@reference_file.setter
|
|
51
|
+
def reference_file(self, value):
|
|
52
|
+
self._edb_object.SetReferenceFile(value)
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
from pyedb.dotnet.edb_core.edb_data.obj_base import ObjBase
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class DefinitionObj(ObjBase):
|
|
27
|
+
"""Base class for definition objects."""
|
|
28
|
+
|
|
29
|
+
def __init__(self, pedb, edb_object):
|
|
30
|
+
super().__init__(pedb, edb_object)
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def definition_obj_type(self):
|
|
34
|
+
return self._edb_object.GetDefinitionObjType()
|
|
35
|
+
|
|
36
|
+
@property
|
|
37
|
+
def name(self):
|
|
38
|
+
return self._edb_object.GetName()
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
from pyedb.dotnet.edb_core.definition.component_def import EDBComponentDef
|
|
24
|
+
from pyedb.dotnet.edb_core.definition.package_def import PackageDef
|
|
25
|
+
from pyedb.generic.general_methods import pyedb_function_handler
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class Definitions:
|
|
29
|
+
def __init__(self, pedb):
|
|
30
|
+
self._pedb = pedb
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def component(self):
|
|
34
|
+
"""Component definitions"""
|
|
35
|
+
return {l.GetName(): EDBComponentDef(self._pedb, l) for l in list(self._pedb.active_db.ComponentDefs)}
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def package(self):
|
|
39
|
+
"""Package definitions."""
|
|
40
|
+
return {l.GetName(): PackageDef(self._pedb, l) for l in list(self._pedb.active_db.PackageDefs)}
|
|
41
|
+
|
|
42
|
+
@pyedb_function_handler
|
|
43
|
+
def add_package_def(self, name):
|
|
44
|
+
"""Add a package definition.
|
|
45
|
+
|
|
46
|
+
Parameters
|
|
47
|
+
----------
|
|
48
|
+
name: str
|
|
49
|
+
Name of the package definition.
|
|
50
|
+
|
|
51
|
+
Returns
|
|
52
|
+
-------
|
|
53
|
+
|
|
54
|
+
"""
|
|
55
|
+
package_def = PackageDef(self._pedb, name=name)
|
|
56
|
+
return package_def
|
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
|
|
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.
|
|
2
22
|
|
|
23
|
+
from pyedb.dotnet.edb_core.dotnet.database import PolygonDataDotNet
|
|
3
24
|
from pyedb.dotnet.edb_core.edb_data.obj_base import ObjBase
|
|
4
25
|
from pyedb.generic.general_methods import pyedb_function_handler
|
|
5
|
-
from pyedb.dotnet.edb_core.dotnet.database import PolygonDataDotNet
|
|
6
26
|
|
|
7
27
|
|
|
8
28
|
class PackageDef(ObjBase):
|
|
@@ -83,7 +103,7 @@ class PackageDef(ObjBase):
|
|
|
83
103
|
return self._edb_object.GetTheta_JC().ToDouble()
|
|
84
104
|
|
|
85
105
|
@theta_jc.setter
|
|
86
|
-
def theta_jc(self,value):
|
|
106
|
+
def theta_jc(self, value):
|
|
87
107
|
value = self._pedb.edb_value(value)
|
|
88
108
|
self._edb_object.SetTheta_JC(value)
|
|
89
109
|
|
|
@@ -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
|
"""Database."""
|
|
2
24
|
import os
|
|
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 NetDotNet
|
|
2
24
|
from pyedb.dotnet.edb_core.dotnet.primitive import cast
|
|
3
25
|
from pyedb.dotnet.edb_core.general import convert_py_list_to_net_list
|
|
@@ -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
|
"""Primitive."""
|
|
2
24
|
from pyedb.dotnet.edb_core.dotnet.database import NetDotNet, PolygonDataDotNet
|
|
3
25
|
from pyedb.dotnet.edb_core.general import convert_py_list_to_net_list
|