XmlMaterialProperty#

class pyedb.xml_parser.xml_stackup.XmlMaterialProperty(/, **data: Any)#

Bases: pydantic.BaseModel

Represents a material property value in the XML stackup.

A property is either a constant () or an equation (). Equations can depend on the frequency with the Freq variable, expressed in Hz.

Parameters:
valuefloat, optional

Numerical value of the material property. The default is None.

equationstr, optional

Equation defining the material property, for instance a frequency dependent permittivity. The default is None.

Overview#

from_value

Create a property from a number, a numeric string or an equation string.

content

Constant value when defined, otherwise the equation.

value

equation

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Import detail#

from pyedb.xml_parser.xml_stackup import XmlMaterialProperty

Property detail#

property XmlMaterialProperty.content: float | str | None#

Constant value when defined, otherwise the equation.

Attribute detail#

XmlMaterialProperty.value: float | None#
XmlMaterialProperty.equation: str | None#
XmlMaterialProperty.model_config#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Method detail#

classmethod XmlMaterialProperty.from_value(value: float | str) → XmlMaterialProperty#

Create a property from a number, a numeric string or an equation string.