Skip to content

Commit edff95a

Browse files
committed
Format JSON files
Signed-off-by: Clemens Korner <clemens.korner@gmail.com>
1 parent 9f4c49b commit edff95a

File tree

555 files changed

+215454
-44959
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

555 files changed

+215454
-44959
lines changed

code_generation/data/attribute_classes/input.json

Lines changed: 655 additions & 581 deletions
Large diffs are not rendered by default.

code_generation/data/attribute_classes/output.json

Lines changed: 295 additions & 295 deletions
Large diffs are not rendered by default.

code_generation/data/attribute_classes/update.json

Lines changed: 242 additions & 242 deletions
Large diffs are not rendered by default.

code_generation/data/dataset_class_maps/dataset_definitions.json

Lines changed: 337 additions & 210 deletions
Large diffs are not rendered by default.

tests/data/power_flow/1os2msr/input.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
"node": [
88
{
99
"id": 1,
10-
"u_rated": 10.5e3
10+
"u_rated": 10500.0
1111
},
1212
{
1313
"id": 2,
14-
"u_rated": 10.5e3
14+
"u_rated": 10500.0
1515
},
1616
{
1717
"id": 3,
18-
"u_rated": 10.5e3
18+
"u_rated": 10500.0
1919
}
2020
],
2121
"line": [
@@ -50,7 +50,7 @@
5050
"node": 1,
5151
"status": 1,
5252
"u_ref": 1.01047619047619,
53-
"sk": 1e20
53+
"sk": 1e+20
5454
}
5555
],
5656
"sym_load": [
@@ -59,17 +59,17 @@
5959
"node": 2,
6060
"status": 1,
6161
"type": 0,
62-
"p_specified": 1.01e6,
63-
"q_specified": 0.21e6
62+
"p_specified": 1010000.0,
63+
"q_specified": 210000.0
6464
},
6565
{
6666
"id": 8,
6767
"node": 3,
6868
"status": 1,
6969
"type": 0,
70-
"p_specified": 1.02e6,
71-
"q_specified": 0.22e6
70+
"p_specified": 1020000.0,
71+
"q_specified": 220000.0
7272
}
7373
]
7474
}
75-
}
75+
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"calculation_method": "newton_raphson",
3-
"rtol": 1e-5,
4-
"atol": 1e-5
5-
}
3+
"rtol": 1e-05,
4+
"atol": 1e-05
5+
}

tests/data/power_flow/1os2msr/sym_output.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,42 +17,42 @@
1717
"energized": 1,
1818
"u": 10610.92,
1919
"u_pu": 1.01056380952381,
20-
"u_angle": -4.62800281e-03
20+
"u_angle": -0.00462800281
2121
},
2222
{
2323
"id": 3,
2424
"energized": 1,
2525
"u": 10606.13,
2626
"u_pu": 1.010107619047619,
27-
"u_angle": -7.20327867e-03
27+
"u_angle": -0.00720327867
2828
}
2929
],
3030
"line": [
3131
{
3232
"id": 4,
3333
"energized": 1,
3434
"loading": 0.404559,
35-
"p_from": 2.402600e+06,
36-
"q_from": -2.933277e+06,
35+
"p_from": 2402600.0,
36+
"q_from": -2933277.0,
3737
"i_from": 206.325118,
38-
"s_from": 3.791649e+06,
39-
"p_to": -2.234973e+06,
40-
"q_to": 1.480636e+06,
38+
"s_from": 3791649.0,
39+
"p_to": -2234973.0,
40+
"q_to": 1480636.0,
4141
"i_to": 145.871929,
42-
"s_to": 2.680930e+06
42+
"s_to": 2680930.0
4343
},
4444
{
4545
"id": 5,
4646
"energized": 1,
4747
"loading": 0.218457,
48-
"p_from": 1.224973e+06,
49-
"q_from": -1.690636e+06,
48+
"p_from": 1224973.0,
49+
"q_from": -1690636.0,
5050
"i_from": 113.597848,
51-
"s_from": 2.087776e+06,
52-
"p_to": -1.020000e+06,
53-
"q_to": -2.200000e+05,
51+
"s_from": 2087776.0,
52+
"p_to": -1020000.0,
53+
"q_to": -220000.0,
5454
"i_to": 56.801043,
55-
"s_to": 1.043456e+06
55+
"s_to": 1043456.0
5656
}
5757
],
5858
"sym_load": [
@@ -61,8 +61,8 @@
6161
"energized": 1,
6262
"p": 1010000.0,
6363
"q": 210000.0,
64-
"i": 56.130370,
65-
"s": 1.031601e+06,
64+
"i": 56.13037,
65+
"s": 1031601.0,
6666
"pf": 0.979061
6767
},
6868
{
@@ -71,9 +71,9 @@
7171
"p": 1020000.0,
7272
"q": 220000.0,
7373
"i": 56.801043,
74-
"s": 1.043456e+06,
74+
"s": 1043456.0,
7575
"pf": 0.977521
7676
}
7777
]
7878
}
79-
}
79+
}

tests/data/power_flow/asym-line/rmatrix-with-n-xmatrix-with-n-c1-c0/asym_output.json

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,57 @@
55
"attributes": {},
66
"data": {
77
"node": [
8-
{"id": 1, "u": [5773.5026918763415, 5773.5026918564045, 5773.5026918364692], "u_angle": [3.4046305427932281e-10, -2.0943951021629377, 2.0943951025132481]},
9-
{"id": 2, "u": [5773.5194556240276, 5773.2545099492745, 5772.9688100988906], "u_angle": [7.317615894109981e-07, -2.0943290868542626, 2.0944300235979698]}
8+
{
9+
"id": 1,
10+
"u": [
11+
5773.5026918763415,
12+
5773.502691856404,
13+
5773.502691836469
14+
],
15+
"u_angle": [
16+
3.404630542793228e-10,
17+
-2.0943951021629377,
18+
2.094395102513248
19+
]
20+
},
21+
{
22+
"id": 2,
23+
"u": [
24+
5773.519455624028,
25+
5773.2545099492745,
26+
5772.968810098891
27+
],
28+
"u_angle": [
29+
7.317615894109981e-07,
30+
-2.0943290868542626,
31+
2.09443002359797
32+
]
33+
}
1034
],
1135
"asym_line": [
12-
{"id": 3, "p_from": [999.99779026860438, 2000.2178719222172, 3000.3820961402121], "q_from": [994.34152753320836, 1994.2992025966887, 2994.5180088008474], "p_to": [-1000.0000000283295, -1999.9999999920947, -2999.9999996775377], "q_to": [-1000.0000000355961, -1999.9999999942308, -2999.9999996714546]}
36+
{
37+
"id": 3,
38+
"p_from": [
39+
999.9977902686044,
40+
2000.2178719222172,
41+
3000.382096140212
42+
],
43+
"q_from": [
44+
994.3415275332084,
45+
1994.2992025966887,
46+
2994.5180088008474
47+
],
48+
"p_to": [
49+
-1000.0000000283295,
50+
-1999.9999999920947,
51+
-2999.9999996775377
52+
],
53+
"q_to": [
54+
-1000.0000000355961,
55+
-1999.9999999942308,
56+
-2999.9999996714546
57+
]
58+
}
1359
]
1460
}
15-
}
61+
}

tests/data/power_flow/asym-line/rmatrix-with-n-xmatrix-with-n-c1-c0/input.json

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@
4141
"x_nb": 0.7339,
4242
"x_nc": 0.7559,
4343
"x_nn": 0.8316,
44-
"c0" : 0.32e-9,
45-
"c1" : 0.54e-9,
46-
"i_n" : 115.0
44+
"c0": 3.2e-10,
45+
"c1": 5.4e-10,
46+
"i_n": 115.0
4747
}
4848
],
4949
"source": [
5050
{
51-
"id": 4,
52-
"node": 1,
53-
"status": 1,
51+
"id": 4,
52+
"node": 1,
53+
"status": 1,
5454
"u_ref": 1.0,
5555
"rx_ratio": 6.0,
56-
"sk": 1e15
56+
"sk": 1000000000000000.0
5757
}
5858
],
5959
"asym_load": [
@@ -62,9 +62,17 @@
6262
"node": 2,
6363
"status": 1,
6464
"type": 0,
65-
"p_specified": [1000.0, 2000.0, 3000.0],
66-
"q_specified": [1000.0, 2000.0, 3000.0]
65+
"p_specified": [
66+
1000.0,
67+
2000.0,
68+
3000.0
69+
],
70+
"q_specified": [
71+
1000.0,
72+
2000.0,
73+
3000.0
74+
]
6775
}
6876
]
6977
}
70-
}
78+
}
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
2-
"calculation_method": ["newton_raphson"],
2+
"calculation_method": [
3+
"newton_raphson"
4+
],
35
"rtol": 1e-08,
46
"atol": 1e-06
5-
}
7+
}

0 commit comments

Comments
 (0)