You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUSINESS_WARNS.warn("Redispatching action {} is not imported: missing {} data for timestamp {}", raId, seriesType, timestamp);
183
+
returnfalse;
184
+
}
185
+
}
186
+
}
187
+
142
188
// If remedial action is defined on a gsk
143
189
if (staticRecord.get(RD_DESCRIPTION_MODE).equalsIgnoreCase(GSK)) {
144
190
// Check that the gsk is defined in the gsk csv
145
191
if (!weightPerNodePerGsk.containsKey(staticRecord.get(UCT_NODE_OR_GSK_ID))) {
146
-
BUSINESS_WARNS.warn("Redispatching action {} is defined on a gsk {} but the gsk is not defined in the gsk csv", raId, staticRecord.get(UCT_NODE_OR_GSK_ID));
192
+
BUSINESS_WARNS.warn("Redispatching action {} is not imported: defined on a gsk {} but the gsk is not defined in the gsk csv", raId, staticRecord.get(UCT_NODE_OR_GSK_ID));
193
+
returnfalse;
194
+
}
195
+
196
+
// Check that the sum of weight if RA is defined on GSK equals to 1
197
+
if (!sumOfGskEqualsOne(staticRecord.get(UCT_NODE_OR_GSK_ID), weightPerNodePerGsk)) {
198
+
BUSINESS_WARNS.warn("Redispatching action {} is not imported: defined on a GSK but sum of weights is not equal to 1", raId);
147
199
returnfalse;
148
200
}
149
201
}
150
202
151
203
// Check that remedial action should at least be defined on preventive instant
152
204
if (!staticRecord.get(PREVENTIVE).equalsIgnoreCase(TRUE)) {
153
-
BUSINESS_WARNS.warn("Redispatching action {} is not defined on preventive instant", raId);
205
+
BUSINESS_WARNS.warn("Redispatching action {} is not imported: not defined on preventive instant", raId);
154
206
returnfalse;
155
207
}
156
208
157
209
// Check that the remedial action is defined on a node or a gsk
158
210
if (!staticRecord.get(RD_DESCRIPTION_MODE).equalsIgnoreCase(NODE) && !staticRecord.get(RD_DESCRIPTION_MODE).equalsIgnoreCase(GSK)) {
159
-
BUSINESS_WARNS.warn("Redispatching action {} is not defined on a node or a gsk but on a {}", raId, staticRecord.get(RD_DESCRIPTION_MODE));
160
-
returnfalse;
161
-
}
162
-
163
-
// Check that the RA is correctly defined in series csv
BUSINESS_WARNS.warn("Redispatching action {} is not defined in the time series csv. Missing one or several timeseries type (P0, RDP_DOWN, RDP_UP or P_MIN_RD).", raId);
211
+
BUSINESS_WARNS.warn("Redispatching action {} is not imported: not defined on a node or a gsk but on a {}", raId, staticRecord.get(RD_DESCRIPTION_MODE));
BUSINESS_WARNS.warn("Redispatching action {} will not be imported because of RDP+ {} or RDP- {} is negative for datetime {}", seriesPerType.get(P0).get(RA_RD_ID), rdpPlus, rdpMinus, dateTime);
296
+
BUSINESS_WARNS.warn("Redispatching action {} is not imported: RDP+ {} or RDP- {} is negative for datetime {}", seriesPerType.get(P0).get(RA_RD_ID), rdpPlus, rdpMinus, dateTime);
240
297
returnfalse;
241
298
}
242
299
}
243
300
if (maxRange < 1) {
244
-
BUSINESS_WARNS.warn("Redispatching action {} will not be imported because max range in the day {} MW is too small", seriesPerType.get(P0).get(RA_RD_ID), maxRange);
301
+
BUSINESS_WARNS.warn("Redispatching action {} is not imported: max range in the day {} MW is too small", seriesPerType.get(P0).get(RA_RD_ID), maxRange);
0 commit comments