The layout_obj.py module#
Summary#
Represents the HFSS product properties. |
|
Represents the properties of a horizontal wave port. |
|
Represents the padstack instance meshing properties. |
|
Represents the via meshing properties. |
|
Represents the PlanarEM solver properties. |
|
Represents the SIwave solver properties. |
|
Represents a layout object. |
Parse an HFSS property string into an HFSSProductProperty object. |
|
Parse a horizontal wave port property string into a HorizontalWavePortProperty object. |
|
Parse a padstack instance meshing property string into a PadstackInstanceMeshingProperty object. |
|
Parse a via meshing property string into a ViaMeshingProperty object. |
|
Parse a PlanarEM property string into a PlanarEMProperty object. |
|
Parse a SIwave property string into a SiwaveProperty object. |
Module detail#
- layout_obj.parse_hfss_string(s: str | None) HFSSProductProperty#
Parse an HFSS property string into an HFSSProductProperty object.
This function extracts configuration settings from a formatted string representation of HFSS properties and reconstructs them into a structured object.
- Parameters:
- Returns:
HFSSProductPropertyAn object containing the parsed HFSS properties with all settings extracted from the input string. If the string is None or any specific property is not found, default values are used.
- layout_obj.parse_horizontal_wave_port_string(s: str | None) HorizontalWavePortProperty#
Parse a horizontal wave port property string into a HorizontalWavePortProperty object.
This function extracts configuration settings from a formatted string representation of horizontal wave port properties and reconstructs them into a structured object. It supports parsing multiple padstack instance names (vias) from the HorizWavePort section.
- Parameters:
- s
str|None A formatted string containing horizontal wave port configuration settings. If None, returns a HorizontalWavePortProperty with default values. Expected format includes key-value pairs like “Type=’value’”, “Arms=2”, etc., and may contain a “HorizWavePort(…)” section with one or more port/via names. Multiple vias are parsed from comma-separated quoted strings, e.g., HorizWavePort(‘pos_via_name’, ‘neg_via_name’).
- s
- Returns:
HorizontalWavePortPropertyAn object containing the parsed horizontal wave port properties with all settings extracted from the input string. The port_names attribute will be a tuple containing all parsed via names. If the string is None or any specific property is not found, default values are used.
- layout_obj.parse_padstack_instance_meshing_string(s: str | None) PadstackInstanceMeshingProperty#
Parse a padstack instance meshing property string into a PadstackInstanceMeshingProperty object.
This function extracts configuration settings from a formatted string representation of padstack instance meshing properties and reconstructs them into a structured object.
- Parameters:
- Returns:
PadstackInstanceMeshingPropertyAn object containing the parsed padstack instance meshing properties with all settings extracted from the input string. If the string is None or any specific property is not found, default values are used.
- layout_obj.parse_via_meshing_string(s: str | None) ViaMeshingProperty#
Parse a via meshing property string into a ViaMeshingProperty object.
This function extracts configuration settings from a formatted string representation of via meshing properties and reconstructs them into a structured object.
- Parameters:
- Returns:
ViaMeshingPropertyAn object containing the parsed via meshing properties with all settings extracted from the input string. If the string is None or any specific property is not found, default values are used.
- layout_obj.parse_planar_em_string(s: str | None) PlanarEMProperty#
Parse a PlanarEM property string into a PlanarEMProperty object.
This function extracts configuration settings from a formatted string representation of PlanarEM properties and reconstructs them into a structured object.
- Parameters:
- Returns:
PlanarEMPropertyAn object containing the parsed PlanarEM properties with all settings extracted from the input string. If the string is None or any specific property is not found, default values are used.
- layout_obj.parse_siwave_string(s: str | None) SiwaveProperty#
Parse a SIwave property string into a SiwaveProperty object.
This function extracts configuration settings from a formatted string representation of SIwave properties and reconstructs them into a structured object.
- Parameters:
- Returns:
SiwavePropertyAn object containing the parsed SIwave properties with all settings extracted from the input string. If the string is None or any specific property is not found, default values are used.