pyedb 0.15.dev0__tar.gz → 0.17.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.15.dev0 → pyedb-0.17.0}/PKG-INFO +1 -1
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/__init__.py +1 -1
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_common.py +1 -3
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_components.py +49 -5
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_data.py +3 -6
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_package_definition.py +3 -5
- pyedb-0.17.0/src/pyedb/configuration/cfg_setup.py +239 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_stackup.py +4 -4
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/configuration.py +9 -5
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb.py +64 -44
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/component.py +12 -17
- pyedb-0.17.0/src/pyedb/dotnet/edb_core/cell/hierarchy/hierarchy_obj.py +50 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/layout.py +0 -6
- pyedb-0.17.0/src/pyedb/dotnet/edb_core/cell/voltage_regulator.py +143 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/components.py +2 -2
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/dotnet/primitive.py +129 -3
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/primitives_data.py +38 -38
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/raptor_x_simulation_setup_data.py +1 -1
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/layout.py +25 -1
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/layout_validation.py +26 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/nets.py +1 -1
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/sim_setup_data/data/mesh_operation.py +63 -49
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/sim_setup_data/data/settings.py +1 -1
- pyedb-0.17.0/src/pyedb/dotnet/edb_core/sim_setup_data/data/sim_setup_info.py +81 -0
- pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/edb_data/hfss_pi_simulation_setup_data.py → pyedb-0.17.0/src/pyedb/dotnet/edb_core/sim_setup_data/data/simulation_settings.py +36 -72
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/sim_setup_data/data/sweep_data.py +131 -96
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/siwave.py +63 -0
- pyedb-0.17.0/src/pyedb/dotnet/edb_core/utilities/hfss_simulation_setup.py +469 -0
- pyedb-0.17.0/src/pyedb/dotnet/edb_core/utilities/simulation_setup.py +350 -0
- pyedb-0.17.0/src/pyedb/dotnet/edb_core/utilities/siwave_simulation_setup.py +369 -0
- pyedb-0.17.0/src/pyedb/misc/siw_feature_config/__init__.py +0 -0
- pyedb-0.17.0/src/pyedb/misc/siw_feature_config/emc/__init__.py +0 -0
- pyedb-0.17.0/src/pyedb/misc/siw_feature_config/xtalk_scan/fd_xtalk_scan_config.py +91 -0
- pyedb-0.17.0/src/pyedb/misc/siw_feature_config/xtalk_scan/impedance_scan_config.py +70 -0
- pyedb-0.17.0/src/pyedb/misc/siw_feature_config/xtalk_scan/net.py +69 -0
- pyedb-0.17.0/src/pyedb/misc/siw_feature_config/xtalk_scan/pins.py +60 -0
- pyedb-0.17.0/src/pyedb/misc/siw_feature_config/xtalk_scan/scan_config.py +88 -0
- pyedb-0.17.0/src/pyedb/misc/siw_feature_config/xtalk_scan/td_xtalk_config.py +104 -0
- pyedb-0.17.0/src/pyedb/workflow.py +32 -0
- pyedb-0.15.dev0/src/pyedb/configuration/cfg_setup.py +0 -201
- pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/utilities/simulation_setup.py +0 -1011
- {pyedb-0.15.dev0 → pyedb-0.17.0}/LICENSE +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/README.md +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/pyproject.toml +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_boundaries.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_general.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_nets.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_operations.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_padstacks.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_pin_groups.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_ports_sources.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_s_parameter_models.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/configuration/cfg_spice_models.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/application/Variables.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/application/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/clr_module.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/__init__.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/cell/hierarchy → pyedb-0.17.0/src/pyedb/dotnet/edb_core/cell}/__init__.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/cell/terminal → pyedb-0.17.0/src/pyedb/dotnet/edb_core/cell/hierarchy}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/model.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/netlist_model.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/pin_pair_model.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/s_parameter_model.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/hierarchy/spice_model.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/layout_obj.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/primitive.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/definition → pyedb-0.17.0/src/pyedb/dotnet/edb_core/cell/terminal}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/terminal/bundle_terminal.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/terminal/edge_terminal.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/terminal/padstack_instance_terminal.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/terminal/pingroup_terminal.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/terminal/point_terminal.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/cell/terminal/terminal.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/dotnet → pyedb-0.17.0/src/pyedb/dotnet/edb_core/definition}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/definition/component_def.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/definition/component_model.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/definition/definition_obj.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/definition/definitions.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/definition/package_def.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/edb_data → pyedb-0.17.0/src/pyedb/dotnet/edb_core/dotnet}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/dotnet/database.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/dotnet/layout.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/geometry → pyedb-0.17.0/src/pyedb/dotnet/edb_core/edb_data}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/control_file.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/design_options.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/edbvalue.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/hfss_extent_info.py +0 -0
- /pyedb-0.15.dev0/src/pyedb/dotnet/edb_core/sim_setup_data/io/__init__.py → /pyedb-0.17.0/src/pyedb/dotnet/edb_core/edb_data/hfss_pi_simulation_setup_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/layer_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/nets_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/padstacks_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/ports.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/simulation_configuration.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/sources.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/utilities.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/edb_data/variables.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/general.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/generic → pyedb-0.17.0/src/pyedb/dotnet/edb_core/geometry}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/geometry/point_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/geometry/polygon_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/hfss.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/materials.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/net_class.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/padstack.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/sim_setup_data/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/sim_setup_data/data/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/sim_setup_data/data/adaptive_frequency_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/sim_setup_data/data/siw_dc_ir_settings.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/ipc2581 → pyedb-0.17.0/src/pyedb/dotnet/edb_core/sim_setup_data/io}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/sim_setup_data/io/siwave.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/stackup.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/utilities/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/utilities/heatsink.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/dotnet/edb_core/utilities/obj_base.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/edb_logger.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/exceptions.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/ipc2581/bom → pyedb-0.17.0/src/pyedb/generic}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/generic/constants.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/generic/data_handlers.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/generic/design_types.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/generic/filesystem.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/generic/general_methods.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/generic/plot.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/generic/process.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/generic/settings.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/ipc2581/content → pyedb-0.17.0/src/pyedb/ipc2581}/__init__.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/ipc2581/ecad → pyedb-0.17.0/src/pyedb/ipc2581/bom}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/bom/bom.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/bom/bom_item.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/bom/characteristics.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/bom/refdes.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/ipc2581/ecad/cad_data → pyedb-0.17.0/src/pyedb/ipc2581/content}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/content/color.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/content/content.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/content/dictionary_color.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/content/dictionary_fill.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/content/dictionary_line.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/content/entry_color.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/content/entry_line.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/content/fill.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/content/layer_ref.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/content/standard_geometries_dictionary.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/misc → pyedb-0.17.0/src/pyedb/ipc2581/ecad}/__init__.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/misc/siw_feature_config → pyedb-0.17.0/src/pyedb/ipc2581/ecad/cad_data}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/assembly_drawing.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/cad_data.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/component.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/drill.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/feature.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/layer.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/layer_feature.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/logical_net.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/outline.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/package.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/padstack_def.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/padstack_hole_def.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/padstack_instance.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/padstack_pad_def.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/path.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/phy_net.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/pin.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/polygon.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/profile.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/stackup.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/stackup_group.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/stackup_layer.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_data/step.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/cad_header.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/ecad.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ecad/spec.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/history_record.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/ipc2581.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/ipc2581/logistic_header.py +0 -0
- {pyedb-0.15.dev0/src/pyedb/misc/siw_feature_config/emc → pyedb-0.17.0/src/pyedb/misc}/__init__.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/misc/aedtlib_personalib_install.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/misc/downloads.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/misc/misc.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/misc/pyedb.runtimeconfig.json +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/misc/siw_feature_config/emc/component_tags.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/misc/siw_feature_config/emc/net_tags.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/misc/siw_feature_config/emc/tag_library.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/misc/siw_feature_config/emc/xml_generic.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/misc/siw_feature_config/emc_rule_checker_settings.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/misc/utilities.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/modeler/geometry_operators.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/siwave.py +0 -0
- {pyedb-0.15.dev0 → pyedb-0.17.0}/src/pyedb/siwave_core/icepak.py +0 -0
|
@@ -51,10 +51,13 @@ class CfgRlcModel(CfgBase):
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
class CfgComponent(CfgBase):
|
|
54
|
+
protected_attributes = ["reference_designator", "definition", "location", "angle", "placement_layer"]
|
|
55
|
+
|
|
54
56
|
def __init__(self, **kwargs):
|
|
55
57
|
self.enabled = kwargs.get("enabled", None)
|
|
56
58
|
|
|
57
59
|
self.reference_designator = kwargs.get("reference_designator", None)
|
|
60
|
+
self.definition = kwargs.get("definition", None)
|
|
58
61
|
self.type = kwargs.get("part_type", None)
|
|
59
62
|
self.value = kwargs.get("value", None)
|
|
60
63
|
self.port_properties = CfgPortProperties(**kwargs["port_properties"]) if "port_properties" in kwargs else None
|
|
@@ -65,15 +68,34 @@ class CfgComponent(CfgBase):
|
|
|
65
68
|
|
|
66
69
|
self.rlc_model = [CfgRlcModel(**rlc_m) for rlc_m in rlc_models]
|
|
67
70
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
self.x_location, self.y_location = kwargs.get("location", [None, None])
|
|
72
|
+
self.angle = kwargs.get("angle", None)
|
|
73
|
+
self.placement_layer = kwargs.get("placement_layer", None)
|
|
74
|
+
|
|
75
|
+
def export_properties(self):
|
|
76
|
+
"""Export component properties.
|
|
77
|
+
|
|
78
|
+
Returns
|
|
79
|
+
-------
|
|
80
|
+
Dict
|
|
81
|
+
"""
|
|
82
|
+
data_comp = {}
|
|
83
|
+
data_comp["enabled"] = self.enabled
|
|
84
|
+
data_comp["reference_designator"] = self.reference_designator
|
|
85
|
+
data_comp["definition"] = self.definition
|
|
86
|
+
data_comp["type"] = self.type
|
|
87
|
+
data_comp["value"] = self.value
|
|
88
|
+
data_comp["x_location"] = self.x_location
|
|
89
|
+
data_comp["y_location"] = self.y_location
|
|
90
|
+
# data_comp["angle"] = self.angle
|
|
91
|
+
data_comp["placement_layer"] = self.placement_layer
|
|
92
|
+
return data_comp
|
|
71
93
|
|
|
72
94
|
|
|
73
95
|
class CfgComponents:
|
|
74
|
-
def __init__(self, pedb,
|
|
96
|
+
def __init__(self, pedb, components_data):
|
|
75
97
|
self._pedb = pedb
|
|
76
|
-
self.components = [CfgComponent(**comp) for comp in
|
|
98
|
+
self.components = [CfgComponent(**comp) for comp in components_data]
|
|
77
99
|
|
|
78
100
|
def apply(self):
|
|
79
101
|
comps_in_db = self._pedb.components
|
|
@@ -129,3 +151,25 @@ class CfgComponents:
|
|
|
129
151
|
setattr(c_db, attr, value)
|
|
130
152
|
else:
|
|
131
153
|
raise AttributeError(f"'{attr}' is not valid component attribute.")
|
|
154
|
+
|
|
155
|
+
def _load_data_from_db(self):
|
|
156
|
+
self.components = []
|
|
157
|
+
comps_in_db = self._pedb.components
|
|
158
|
+
for _, comp in comps_in_db.components.items():
|
|
159
|
+
cfg_comp = CfgComponent(
|
|
160
|
+
enabled=comp.enabled,
|
|
161
|
+
reference_designator=comp.name,
|
|
162
|
+
part_type=comp.type,
|
|
163
|
+
value=comp.value,
|
|
164
|
+
definition=comp.component_def,
|
|
165
|
+
location=comp.location,
|
|
166
|
+
placement_layer=comp.placement_layer,
|
|
167
|
+
)
|
|
168
|
+
self.components.append(cfg_comp)
|
|
169
|
+
|
|
170
|
+
def get_data_from_db(self):
|
|
171
|
+
self._load_data_from_db()
|
|
172
|
+
data = []
|
|
173
|
+
for comp in self.components:
|
|
174
|
+
data.append(comp.export_properties())
|
|
175
|
+
return data
|
|
@@ -31,7 +31,7 @@ from pyedb.configuration.cfg_padstacks import CfgPadstacks
|
|
|
31
31
|
from pyedb.configuration.cfg_pin_groups import CfgPinGroup
|
|
32
32
|
from pyedb.configuration.cfg_ports_sources import CfgPort, CfgSources
|
|
33
33
|
from pyedb.configuration.cfg_s_parameter_models import CfgSParameterModel
|
|
34
|
-
from pyedb.configuration.cfg_setup import
|
|
34
|
+
from pyedb.configuration.cfg_setup import CfgSetups
|
|
35
35
|
from pyedb.configuration.cfg_spice_models import CfgSpiceModel
|
|
36
36
|
from pyedb.configuration.cfg_stackup import CfgStackup
|
|
37
37
|
|
|
@@ -54,8 +54,7 @@ class CfgData(object):
|
|
|
54
54
|
self, kwargs.get("nets", {}).get("signal_nets", []), kwargs.get("nets", {}).get("power_ground_nets", [])
|
|
55
55
|
)
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
self.components = CfgComponents(self._pedb, data=kwargs.get("components", []))
|
|
57
|
+
self.components = CfgComponents(self._pedb, components_data=kwargs.get("components", []))
|
|
59
58
|
|
|
60
59
|
self.padstacks = CfgPadstacks(self, kwargs.get("padstacks", None))
|
|
61
60
|
|
|
@@ -65,9 +64,7 @@ class CfgData(object):
|
|
|
65
64
|
|
|
66
65
|
self.sources = [CfgSources(self, **source) for source in kwargs.get("sources", [])]
|
|
67
66
|
|
|
68
|
-
self.setups = []
|
|
69
|
-
if kwargs.get("setups", None):
|
|
70
|
-
self.setups = [CfgSetup(self, setup) for setup in kwargs.get("setups", [])]
|
|
67
|
+
self.setups = CfgSetups(self._pedb, setups_data=kwargs.get("setups", []))
|
|
71
68
|
|
|
72
69
|
self.stackup = CfgStackup(self._pedb, data=kwargs.get("stackup", {}))
|
|
73
70
|
|
|
@@ -27,6 +27,9 @@ from pyedb.dotnet.edb_core.definition.package_def import PackageDef
|
|
|
27
27
|
class CfgPackage(CfgBase):
|
|
28
28
|
"""Configuration package class."""
|
|
29
29
|
|
|
30
|
+
# Attributes cannot be set to package definition class or don't exist in package definition class.
|
|
31
|
+
protected_attributes = ["apply_to_all", "components", "extent_bounding_box", "component_definition"]
|
|
32
|
+
|
|
30
33
|
def __init__(self, **kwargs):
|
|
31
34
|
self.name = kwargs.get("name", None)
|
|
32
35
|
self.component_definition = kwargs.get("component_definition", None)
|
|
@@ -48,11 +51,6 @@ class CfgPackage(CfgBase):
|
|
|
48
51
|
def heatsink(self, value):
|
|
49
52
|
self._heatsink = value
|
|
50
53
|
|
|
51
|
-
@property
|
|
52
|
-
def protected_attributes(self):
|
|
53
|
-
"""Attributes cannot be set to package definition class or don't exist in package definition class."""
|
|
54
|
-
return ["apply_to_all", "components", "extent_bounding_box", "component_definition"]
|
|
55
|
-
|
|
56
54
|
|
|
57
55
|
class CfgHeatSink(CfgBase):
|
|
58
56
|
"""Configuration heat sink class."""
|
|
@@ -0,0 +1,239 @@
|
|
|
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.configuration.cfg_common import CfgBase
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class CfgFrequencies(CfgBase):
|
|
27
|
+
def __init__(self, **kwargs):
|
|
28
|
+
self.distribution = kwargs.get("distribution").replace(" ", "_") if kwargs.get("distribution") else None
|
|
29
|
+
self.start = kwargs.get("start")
|
|
30
|
+
self.stop = kwargs.get("stop")
|
|
31
|
+
self.increment = kwargs.get("increment", kwargs.get("points", kwargs.get("samples", kwargs.get("step"))))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class CfgSweepData(CfgBase):
|
|
35
|
+
def __init__(self, **kwargs):
|
|
36
|
+
self.name = kwargs.get("name")
|
|
37
|
+
self.type = kwargs.get("type").lower() if kwargs.get("type") else None
|
|
38
|
+
self.frequencies = []
|
|
39
|
+
for kw in kwargs.get("frequencies", []):
|
|
40
|
+
self.frequencies.append(CfgFrequencies(**kw))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class CfgSetup(CfgBase):
|
|
44
|
+
def __init__(self, pedb, **kwargs):
|
|
45
|
+
self._pedb = pedb
|
|
46
|
+
self.name = kwargs.get("name")
|
|
47
|
+
self.type = kwargs.get("type").lower() if kwargs.get("type") else None
|
|
48
|
+
|
|
49
|
+
self.freq_sweep = []
|
|
50
|
+
for i in kwargs.get("freq_sweep", []):
|
|
51
|
+
self.freq_sweep.append(CfgSweepData(**i))
|
|
52
|
+
|
|
53
|
+
def _apply_freq_sweep(self, edb_setup):
|
|
54
|
+
for i in self.freq_sweep:
|
|
55
|
+
f_set = []
|
|
56
|
+
kw = {}
|
|
57
|
+
for attr in i.get_attributes(exclude="name"):
|
|
58
|
+
if attr == "frequencies":
|
|
59
|
+
for f in i.frequencies:
|
|
60
|
+
f_set.append([f.distribution, f.start, f.stop, f.increment])
|
|
61
|
+
else:
|
|
62
|
+
kw[attr] = getattr(i, attr)
|
|
63
|
+
edb_setup.add_sweep(i.name, frequency_set=f_set, **kw)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class CfgSIwaveACSetup(CfgSetup):
|
|
67
|
+
def __init__(self, pedb, **kwargs):
|
|
68
|
+
super().__init__(pedb, **kwargs)
|
|
69
|
+
self.si_slider_position = kwargs.get("si_slider_position")
|
|
70
|
+
self.pi_slider_position = kwargs.get("pi_slider_position")
|
|
71
|
+
|
|
72
|
+
def apply(self):
|
|
73
|
+
if self.name in self._pedb.setups:
|
|
74
|
+
raise "Setup {} already existing. Editing it.".format(self.name)
|
|
75
|
+
|
|
76
|
+
kwargs = (
|
|
77
|
+
{"si_slider_position": self.si_slider_position}
|
|
78
|
+
if self.si_slider_position is not None
|
|
79
|
+
else {"pi_slider_position": self.pi_slider_position}
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
edb_setup = self._pedb.create_siwave_syz_setup(name=self.name, **kwargs)
|
|
83
|
+
self._apply_freq_sweep(edb_setup)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class CfgSIwaveDCSetup(CfgSetup):
|
|
87
|
+
def __init__(self, pedb, **kwargs):
|
|
88
|
+
super().__init__(pedb, **kwargs)
|
|
89
|
+
self.dc_slider_position = kwargs.get("dc_slider_position")
|
|
90
|
+
self.dc_ir_settings = CfgDcIrSettings(**kwargs.get("dc_ir_settings", {}))
|
|
91
|
+
self.freq_sweep = None
|
|
92
|
+
|
|
93
|
+
def apply(self):
|
|
94
|
+
edb_setup = self._pedb.create_siwave_dc_setup(name=self.name, dc_slider_position=self.dc_slider_position)
|
|
95
|
+
for k, v in self.dc_ir_settings.get_attributes().items():
|
|
96
|
+
if k == "dc_slider_postion":
|
|
97
|
+
edb_setup.dc_settings.dc_slider_position = v
|
|
98
|
+
else:
|
|
99
|
+
setattr(edb_setup.dc_ir_settings, k, v)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class CfgHFSSSetup(CfgSetup):
|
|
103
|
+
def __init__(self, pedb, **kwargs):
|
|
104
|
+
super().__init__(pedb, **kwargs)
|
|
105
|
+
|
|
106
|
+
self.f_adapt = kwargs.get("f_adapt")
|
|
107
|
+
self.max_num_passes = kwargs.get("max_num_passes")
|
|
108
|
+
self.max_mag_delta_s = kwargs.get("max_mag_delta_s")
|
|
109
|
+
|
|
110
|
+
self.mesh_operations = []
|
|
111
|
+
for i in kwargs.get("mesh_operations", []):
|
|
112
|
+
self.mesh_operations.append(CfgLengthMeshOperation(**i))
|
|
113
|
+
|
|
114
|
+
def apply(self):
|
|
115
|
+
if self.name in self._pedb.setups:
|
|
116
|
+
raise "Setup {} already existing. Editing it.".format(self.name)
|
|
117
|
+
|
|
118
|
+
edb_setup = self._pedb.create_hfss_setup(self.name)
|
|
119
|
+
edb_setup.set_solution_single_frequency(self.f_adapt, self.max_num_passes, self.max_mag_delta_s)
|
|
120
|
+
|
|
121
|
+
self._apply_freq_sweep(edb_setup)
|
|
122
|
+
|
|
123
|
+
for i in self.mesh_operations:
|
|
124
|
+
edb_setup.add_length_mesh_operation(
|
|
125
|
+
net_layer_list=i.nets_layers_list,
|
|
126
|
+
name=i.name,
|
|
127
|
+
# max_elements=i.max_elements,
|
|
128
|
+
max_length=i.max_length,
|
|
129
|
+
# restrict_elements=i.restrict_max_elements,
|
|
130
|
+
restrict_length=i.restrict_length,
|
|
131
|
+
refine_inside=i.refine_inside,
|
|
132
|
+
# mesh_region=i.mesh_region
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
class CfgDcIrSettings(CfgBase):
|
|
137
|
+
def __init__(self, **kwargs):
|
|
138
|
+
self.export_dc_thermal_data = kwargs.get("export_dc_thermal_data")
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
class CfgMeshOperation(CfgBase):
|
|
142
|
+
def __init__(self, **kwargs):
|
|
143
|
+
self.name = kwargs.get("name")
|
|
144
|
+
self.type = kwargs.get("type")
|
|
145
|
+
# self.mesh_region = kwargs.get("mesh_region")
|
|
146
|
+
self.nets_layers_list = kwargs.get("nets_layers_list", {})
|
|
147
|
+
self.refine_inside = kwargs.get("refine_inside", False)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
class CfgLengthMeshOperation(CfgMeshOperation):
|
|
151
|
+
def __init__(self, **kwargs):
|
|
152
|
+
super().__init__(**kwargs)
|
|
153
|
+
|
|
154
|
+
# waiting bug review
|
|
155
|
+
# self.restrict_max_elements = kwargs.get("restrict_max_elements", True)
|
|
156
|
+
# self.max_elements = kwargs.get("max_elements", 1000)
|
|
157
|
+
self.restrict_length = kwargs.get("restrict_length", True)
|
|
158
|
+
self.max_length = kwargs.get("max_length", "1mm")
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
class CfgSetups:
|
|
162
|
+
def __init__(self, pedb, setups_data):
|
|
163
|
+
self._pedb = pedb
|
|
164
|
+
self.setups = []
|
|
165
|
+
for stp in setups_data:
|
|
166
|
+
if stp.get("type").lower() == "hfss":
|
|
167
|
+
self.setups.append(CfgHFSSSetup(self._pedb, **stp))
|
|
168
|
+
elif stp.get("type").lower() in ["siwave_ac", "siwave_syz"]:
|
|
169
|
+
self.setups.append(CfgSIwaveACSetup(self._pedb, **stp))
|
|
170
|
+
elif stp.get("type").lower() == "siwave_dc":
|
|
171
|
+
self.setups.append(CfgSIwaveDCSetup(self._pedb, **stp))
|
|
172
|
+
|
|
173
|
+
def apply(self):
|
|
174
|
+
for s in self.setups:
|
|
175
|
+
s.apply()
|
|
176
|
+
|
|
177
|
+
def get_data_from_db(self):
|
|
178
|
+
setups = []
|
|
179
|
+
for _, s in self._pedb.setups.items():
|
|
180
|
+
stp = {}
|
|
181
|
+
if s.type == "hfss":
|
|
182
|
+
for p_name in CfgHFSSSetup(self._pedb).__dict__:
|
|
183
|
+
if p_name.startswith("_"):
|
|
184
|
+
continue
|
|
185
|
+
elif p_name == "type":
|
|
186
|
+
stp[p_name] = s.type
|
|
187
|
+
elif p_name == "f_adapt":
|
|
188
|
+
stp[p_name] = list(s.adaptive_settings.adaptive_frequency_data_list)[0].adaptive_frequency
|
|
189
|
+
elif p_name == "max_num_passes":
|
|
190
|
+
stp[p_name] = list(s.adaptive_settings.adaptive_frequency_data_list)[0].max_passes
|
|
191
|
+
elif p_name == "max_mag_delta_s":
|
|
192
|
+
stp[p_name] = list(s.adaptive_settings.adaptive_frequency_data_list)[0].max_delta
|
|
193
|
+
elif p_name == "freq_sweep":
|
|
194
|
+
f_sweep = []
|
|
195
|
+
for _, sw in s.sweeps.items():
|
|
196
|
+
sweep_data = {}
|
|
197
|
+
for sw_p_name in CfgSweepData().__dict__:
|
|
198
|
+
if sw_p_name == "frequencies":
|
|
199
|
+
pass # Frequencies cannot be read from EDB
|
|
200
|
+
else:
|
|
201
|
+
sweep_data[sw_p_name] = getattr(sw, sw_p_name)
|
|
202
|
+
f_sweep.append(sweep_data)
|
|
203
|
+
stp["freq_sweep"] = f_sweep
|
|
204
|
+
elif p_name == "mesh_operations":
|
|
205
|
+
mops = []
|
|
206
|
+
for _, i in s.mesh_operations.items():
|
|
207
|
+
mop = {}
|
|
208
|
+
for mop_p_name in CfgLengthMeshOperation().__dict__:
|
|
209
|
+
mop[mop_p_name] = getattr(i, mop_p_name)
|
|
210
|
+
mops.append(mop)
|
|
211
|
+
stp["mesh_operations"] = mops
|
|
212
|
+
else:
|
|
213
|
+
stp[p_name] = getattr(s, p_name)
|
|
214
|
+
|
|
215
|
+
elif s.type == "siwave_ac":
|
|
216
|
+
for p_name in CfgSIwaveACSetup(self._pedb).__dict__:
|
|
217
|
+
if p_name.startswith("_"):
|
|
218
|
+
continue
|
|
219
|
+
elif p_name == "freq_sweep":
|
|
220
|
+
pass # Bug in EDB API
|
|
221
|
+
else:
|
|
222
|
+
stp[p_name] = getattr(s, p_name)
|
|
223
|
+
elif s.type == "siwave_dc":
|
|
224
|
+
for p_name in CfgSIwaveDCSetup(self._pedb).__dict__:
|
|
225
|
+
if p_name.startswith("_"):
|
|
226
|
+
continue
|
|
227
|
+
elif p_name == "freq_sweep":
|
|
228
|
+
pass
|
|
229
|
+
elif p_name == "dc_ir_settings":
|
|
230
|
+
dc_ir_s = {}
|
|
231
|
+
for dcir_p_name in CfgDcIrSettings().__dict__:
|
|
232
|
+
dc_ir_s[dcir_p_name] = getattr(s.dc_ir_settings, dcir_p_name)
|
|
233
|
+
stp["dc_ir_settings"] = dc_ir_s
|
|
234
|
+
elif p_name == "dc_slider_position":
|
|
235
|
+
stp[p_name] = getattr(s.dc_settings, p_name)
|
|
236
|
+
else:
|
|
237
|
+
stp[p_name] = getattr(s, p_name)
|
|
238
|
+
setups.append(stp)
|
|
239
|
+
return setups
|
|
@@ -127,7 +127,7 @@ class CfgStackup:
|
|
|
127
127
|
attrs = mat_in_cfg.get_attributes()
|
|
128
128
|
mat = self._pedb.materials.add_material(**attrs)
|
|
129
129
|
|
|
130
|
-
def
|
|
130
|
+
def get_materials_from_db(self):
|
|
131
131
|
materials = []
|
|
132
132
|
for name, p in self._pedb.materials.materials.items():
|
|
133
133
|
mat = {}
|
|
@@ -136,7 +136,7 @@ class CfgStackup:
|
|
|
136
136
|
materials.append(mat)
|
|
137
137
|
return materials
|
|
138
138
|
|
|
139
|
-
def
|
|
139
|
+
def get_layers_from_db(self):
|
|
140
140
|
layers = []
|
|
141
141
|
for name, obj in self._pedb.stackup.all_layers.items():
|
|
142
142
|
layer = {}
|
|
@@ -155,8 +155,8 @@ class CfgStackup:
|
|
|
155
155
|
dict
|
|
156
156
|
"""
|
|
157
157
|
stackup = {}
|
|
158
|
-
materials = self.
|
|
158
|
+
materials = self.get_materials_from_db()
|
|
159
159
|
stackup["materials"] = materials
|
|
160
|
-
layers = self.
|
|
160
|
+
layers = self.get_layers_from_db()
|
|
161
161
|
stackup["layers"] = layers
|
|
162
162
|
return stackup
|
|
@@ -131,9 +131,8 @@ class Configuration:
|
|
|
131
131
|
for source in self.cfg_data.sources:
|
|
132
132
|
source.create()
|
|
133
133
|
|
|
134
|
-
# Configure
|
|
135
|
-
|
|
136
|
-
setup.apply()
|
|
134
|
+
# Configure setup
|
|
135
|
+
self.cfg_data.setups.apply()
|
|
137
136
|
|
|
138
137
|
# Configure stackup
|
|
139
138
|
self.cfg_data.stackup.apply()
|
|
@@ -264,15 +263,20 @@ class Configuration:
|
|
|
264
263
|
-------
|
|
265
264
|
|
|
266
265
|
"""
|
|
266
|
+
self._pedb.logger.info("Getting data from layout database.")
|
|
267
267
|
data = {}
|
|
268
268
|
if kwargs.get("stackup", False):
|
|
269
269
|
data["stackup"] = self.cfg_data.stackup.get_data_from_db()
|
|
270
270
|
if kwargs.get("package_definitions", False):
|
|
271
271
|
data["package_definitions"] = self.cfg_data.package_definitions.get_data_from_db()
|
|
272
|
+
if kwargs.get("setups", False):
|
|
273
|
+
data["setups"] = self.cfg_data.setups.get_data_from_db()
|
|
274
|
+
if kwargs.get("components", False):
|
|
275
|
+
data["components"] = self.cfg_data.components.get_data_from_db()
|
|
272
276
|
|
|
273
277
|
return data
|
|
274
278
|
|
|
275
|
-
def export(self, file_path, stackup=True, package_definitions=True):
|
|
279
|
+
def export(self, file_path, stackup=True, package_definitions=True, setups=True):
|
|
276
280
|
"""Export the configuration data from layout to a file.
|
|
277
281
|
|
|
278
282
|
Parameters
|
|
@@ -288,7 +292,7 @@ class Configuration:
|
|
|
288
292
|
"""
|
|
289
293
|
file_path = file_path if isinstance(file_path, Path) else Path(file_path)
|
|
290
294
|
file_path = file_path if file_path.suffix == ".json" else file_path.with_suffix(".json")
|
|
291
|
-
data = self.get_data_from_db(stackup=stackup, package_definitions=package_definitions)
|
|
295
|
+
data = self.get_data_from_db(stackup=stackup, package_definitions=package_definitions, setups=setups)
|
|
292
296
|
with open(file_path, "w") as f:
|
|
293
297
|
json.dump(data, f, ensure_ascii=False, indent=4)
|
|
294
298
|
return True if os.path.isfile(file_path) else False
|