Utility Classes#
Vertex#
XY#
Unit Value#
- class mhi.xml.pscad.types.UnitValue(value)#
Representation of a ‘Real’ value with a unit in a PSCAD parameter.
The unit is contained within square brackets.
Example:
"100.0 [km]"
Enum Types#
Resources#
IntBool#
BusType#
Choice#
- class mhi.xml.pscad.types.Choice(choices: dict[str, Any])#
Representation of ‘Choice’ values in a PSCAD parameter
- classmethod enum(*values, start: int = 0)#
Convert a list of values into an ‘enumeration’, by assigning each to a sequential integer value
- classmethod ints(*values)#
Convert a list of integers into a PSCAD Choice parameter, by assigning each one to its string representation.
Ports#
- class mhi.xml.pscad.NodeType(*values)#
Node Input/Output/Electrical Type
- UNKNOWN = '0'#
- INPUT = '1'#
- OUTPUT = '2'#
- ELECTRICAL = '3'#
- SHORT = '4'#
Graphics#
- class mhi.xml.pscad.LineStyle(*values)#
Line Styles
- SOLID = '0'#
- DASH = '1'#
- DOT = '2'#
- DASHDOT = '3'#
- class mhi.xml.pscad.FillStyle(*values)#
Fill Styles
- HOLLOW = '0'#
- SOLID = '1'#
- BACKWARD_DIAGONAL = '2'#
- FORWARD_DIAGONAL = '3'#
- CROSS = '4'#
- DIAGONAL_CROSS = '5'#
- HORIZONTAL = '6'#
- VERTICAL = '7'#
- GRADIENT_HORZ = '8'#
- GRADIENT_VERT = '9'#
- GRADIENT_BACK_DIAG = '10'#
- GRADIENT_FORE_DIAG = '11'#
- GRADIENT_RADIAL = '12'#