Skip to content

Commit 0240bd9

Browse files
Merge pull request #141 from alliander-opensource/fix/type-order
Fix/type order
2 parents cf12b31 + 184fa14 commit 0240bd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/power_grid_model/data_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
Example: [{"node": <1d-array>, "line": <1d-array>}, {"node": <1d-array>, "line": <1d-array>}]
6666
"""
6767

68-
Nominal = int
68+
NominalValue = int
6969
"""
7070
Nominal values can be IDs, booleans, enums, tap pos
7171
@@ -86,14 +86,14 @@
8686
Example: (10400.0, 10500.0, 10600.0)
8787
"""
8888

89-
AttributeValue = Union[Nominal, RealValue, AsymValue]
89+
AttributeValue = Union[RealValue, NominalValue, AsymValue]
9090
"""
9191
When representing a grid as a native python structure, each attribute (u_rated etc) is either a nominal value,
9292
a real value, or a tuple of three real values.
9393
9494
Examples:
95-
nominal: 123
9695
real: 10500.0
96+
nominal: 123
9797
asym: (10400.0, 10500.0, 10600.0)
9898
"""
9999

0 commit comments

Comments
 (0)