Skip to content

Commit b237412

Browse files
corrects TU and imports
Signed-off-by: Mathieu DEHARBE <[email protected]>
1 parent a0c0876 commit b237412

File tree

6 files changed

+19
-22
lines changed

6 files changed

+19
-22
lines changed

src/main/java/org/gridsuite/network/map/dto/mapper/LineInfosMapper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import com.powsybl.iidm.network.*;
1010
import com.powsybl.iidm.network.extensions.Measurement;
11-
import org.apache.commons.lang3.tuple.Pair;
1211
import org.gridsuite.network.map.dto.ElementInfos;
1312
import org.gridsuite.network.map.dto.InfoTypeParameters;
1413
import org.gridsuite.network.map.dto.common.CurrentLimitsData;

src/main/java/org/gridsuite/network/map/dto/mapper/TwoWindingsTransformerInfosMapper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import com.powsybl.iidm.network.extensions.DiscreteMeasurement;
1111
import com.powsybl.iidm.network.extensions.Measurement;
1212
import com.powsybl.iidm.network.extensions.TwoWindingsTransformerToBeEstimated;
13-
import org.apache.commons.lang3.tuple.Pair;
1413
import org.gridsuite.network.map.dto.ElementInfos;
1514
import org.gridsuite.network.map.dto.InfoTypeParameters;
1615
import org.gridsuite.network.map.dto.common.CurrentLimitsData;

src/main/java/org/gridsuite/network/map/dto/utils/ElementUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import com.powsybl.iidm.network.*;
1111
import com.powsybl.iidm.network.extensions.*;
1212
import com.powsybl.math.graph.TraversalType;
13-
import org.apache.commons.lang3.tuple.Pair;
1413
import org.gridsuite.network.map.dto.common.*;
1514
import org.gridsuite.network.map.dto.definition.extension.*;
1615
import org.gridsuite.network.map.dto.definition.threewindingstransformer.ThreeWindingsTransformerTabInfos;
@@ -151,7 +150,7 @@ public static void mergeCurrentLimits(Collection<OperationalLimitsGroup> operati
151150
// both sides have limits and limits are equals
152151
if (limitsData.limitsEquals(limitsData2)) {
153152
mergedLimitsData.add(copyCurrentLimitsData(limitsData, EQUIPMENT));
154-
// both side have limits and they are different : create 2 different limit sets with basename_Or and _Ex
153+
// both side have limits and they are different : create 2 different limit sets
155154
} else {
156155
// Side 1
157156
mergedLimitsData.add(copyCurrentLimitsData(limitsData, SIDE1));

src/test/resources/2-windings-transformer-map-data.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,36 @@
1313
"q2": 14.44,
1414
"currentLimits1": [
1515
{
16-
"id" : "limit set 1_OR",
16+
"id" : "limit set 1",
1717
"permanentLimit":750.4,
1818
"temporaryLimits":[{"name":"IT5","acceptableDuration":2087,"value":300}],
1919
"applicability": null
2020
}
2121
],
2222
"currentLimits2": [
2323
{
24-
"id" : "limit set 1_EX",
24+
"id" : "limit set 1",
2525
"permanentLimit":780.6,
2626
"temporaryLimits":[{"name":"N/A","acceptableDuration":664,"value":2147483647},{"name":"IT20","acceptableDuration":961,"value":1200}],
2727
"applicability": null
2828
}
2929
],
3030
"currentLimits": [
3131
{
32-
"id" : "limit set 1_OR",
32+
"id" : "limit set 1",
3333
"permanentLimit":750.4,
3434
"temporaryLimits":[{"name":"IT5","acceptableDuration":2087,"value":300}],
3535
"applicability": "SIDE1"
3636
},
3737
{
38-
"id" : "limit set 1_EX",
38+
"id" : "limit set 1",
3939
"permanentLimit":780.6,
4040
"temporaryLimits":[{"name":"N/A","acceptableDuration":664,"value":2147483647},{"name":"IT20","acceptableDuration":961,"value":1200}],
4141
"applicability": "SIDE2"
4242
}
4343
],
44-
"selectedOperationalLimitsGroup1": "limit set 1_OR",
45-
"selectedOperationalLimitsGroup2": "limit set 1_EX",
44+
"selectedOperationalLimitsGroup1": "limit set 1",
45+
"selectedOperationalLimitsGroup2": "limit set 1",
4646
"phaseTapChanger": {
4747
"lowTapPosition": 0,
4848
"highTapPosition": 1,

src/test/resources/line-form-data.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,36 @@
1010
"q2": 4.44,
1111
"currentLimits1": [
1212
{
13-
"id" : "limit set 1_OR",
13+
"id" : "limit set 1",
1414
"permanentLimit":700.4,
1515
"temporaryLimits":[{"name":"IT5","acceptableDuration":300,"value":250.0}],
1616
"applicability": null
1717
}
1818
],
1919
"currentLimits2": [
2020
{
21-
"id" : "limit set 1_EX",
21+
"id" : "limit set 1",
2222
"permanentLimit":800.8,
2323
"temporaryLimits":[{"name":"IT20","acceptableDuration":1200,"value":300.0},{"name":"IT10","acceptableDuration":600,"value":200.0}],
2424
"applicability": null
2525
}
2626
],
2727
"currentLimits": [
2828
{
29-
"id" : "limit set 1_OR",
29+
"id" : "limit set 1",
3030
"permanentLimit":700.4,
3131
"temporaryLimits":[{"name":"IT5","acceptableDuration":300,"value":250.0}],
3232
"applicability": "SIDE1"
3333
},
3434
{
35-
"id" : "limit set 1_EX",
35+
"id" : "limit set 1",
3636
"permanentLimit":800.8,
3737
"temporaryLimits":[{"name":"IT20","acceptableDuration":1200,"value":300.0},{"name":"IT10","acceptableDuration":600,"value":200.0}],
3838
"applicability": "SIDE2"
3939
}
4040
],
41-
"selectedOperationalLimitsGroup1": "limit set 1_OR",
42-
"selectedOperationalLimitsGroup2": "limit set 1_EX",
41+
"selectedOperationalLimitsGroup1": "limit set 1",
42+
"selectedOperationalLimitsGroup2": "limit set 1",
4343
"r": 9.0,
4444
"x": 10.0,
4545
"g1": 7.0,

src/test/resources/lines-form-data.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"q2": 4.44,
1212
"currentLimits1": [
1313
{
14-
"id": "limit set 1_OR",
14+
"id": "limit set 1",
1515
"permanentLimit": 700.4,
1616
"temporaryLimits": [
1717
{
@@ -25,7 +25,7 @@
2525
],
2626
"currentLimits2": [
2727
{
28-
"id": "limit set 1_EX",
28+
"id": "limit set 1",
2929
"permanentLimit": 800.8,
3030
"temporaryLimits": [
3131
{
@@ -44,7 +44,7 @@
4444
],
4545
"currentLimits": [
4646
{
47-
"id": "limit set 1_OR",
47+
"id": "limit set 1",
4848
"permanentLimit": 700.4,
4949
"temporaryLimits": [
5050
{
@@ -56,7 +56,7 @@
5656
"applicability": "SIDE1"
5757
},
5858
{
59-
"id": "limit set 1_EX",
59+
"id": "limit set 1",
6060
"permanentLimit": 800.8,
6161
"temporaryLimits": [
6262
{
@@ -73,8 +73,8 @@
7373
"applicability": "SIDE2"
7474
}
7575
],
76-
"selectedOperationalLimitsGroup1": "limit set 1_OR",
77-
"selectedOperationalLimitsGroup2": "limit set 1_EX",
76+
"selectedOperationalLimitsGroup1": "limit set 1",
77+
"selectedOperationalLimitsGroup2": "limit set 1",
7878
"r": 9.0,
7979
"x": 10.0,
8080
"g1": 7.0,

0 commit comments

Comments
 (0)