@@ -196,7 +196,7 @@ def get_parade_info(self, act):
196196 "Redispatch" # pour renvoyer le kpi type_of_the_reco
197197 )
198198 title .append (
199- "Parade injection: redispatch de source de production "
199+ "Injection recommendation: production source redispatch "
200200 )
201201 cpt = 0
202202 for gen_idx in range (act .n_gen ):
@@ -213,9 +213,9 @@ def get_parade_info(self, act):
213213 # storage
214214 if act ._modif_storage :
215215 kpis ["type_of_the_reco" ] = (
216- "Stockage " # pour renvoyer le kpi type_of_the_reco
216+ "Storage " # pour renvoyer le kpi type_of_the_reco
217217 )
218- title .append ("Parade stockage " )
218+ title .append ("Storage recommendation " )
219219 cpt = 0
220220 for stor_idx in range (act .n_storage ):
221221 amount_ = act ._storage_power [stor_idx ]
@@ -225,8 +225,8 @@ def get_parade_info(self, act):
225225 description .append (", " )
226226 cpt = 1
227227 description .append (
228- f'Demande à l \' unité "{ name_ } " de '
229- f'{ "charger " if amount_ > 0.0 else "decharger " } '
228+ f'Ask unit "{ name_ } " to '
229+ f'{ "charge " if amount_ > 0.0 else "discharge " } '
230230 f'{ abs (amount_ ):.2f} MW (setpoint: { amount_ :.2f} MW)'
231231 )
232232
@@ -235,7 +235,7 @@ def get_parade_info(self, act):
235235 kpis ["type_of_the_reco" ] = (
236236 "Injection" # pour renvoyer le kpi type_of_the_reco
237237 )
238- title .append ("Parade injection " )
238+ title .append ("Injection recommendation " )
239239 cpt = 0
240240 for gen_idx in range (act .n_gen ):
241241 amount_ = act ._curtail [gen_idx ]
@@ -245,71 +245,71 @@ def get_parade_info(self, act):
245245 description .append (", " )
246246 cpt = 1
247247 description .append (
248- f'Limiter l \' unité "{ name_ } " à '
249- f'{ 100.0 * amount_ :.1f} % de sa capacité max '
248+ f'Limit unit "{ name_ } " to '
249+ f'{ 100.0 * amount_ :.1f} % of its maximum capacity '
250250 f'(setpoint: { amount_ :.3f} )'
251251 )
252252
253253 # force line status
254254 force_line_impact = impact ["force_line" ]
255255 if force_line_impact ["changed" ]:
256256 kpis ["type_of_the_reco" ] = (
257- "Topologique " # pour renvoyer le kpi type_of_the_reco
257+ "Topological " # pour renvoyer le kpi type_of_the_reco
258258 )
259259 title .append (
260- "Parade topologique : connection/deconnection de ligne "
260+ "Topological recommendation : connection/disconnection of line "
261261 )
262262 reconnections = force_line_impact ["reconnections" ]
263263 if reconnections ["count" ] > 0 :
264264 description .append (
265- f"Reconnection de { reconnections ['count' ]} lignes "
265+ f"Reconnection of { reconnections ['count' ]} lines "
266266 f"({ reconnections ['powerlines' ]} )"
267267 )
268268
269269 disconnections = force_line_impact ["disconnections" ]
270270 if disconnections ["count" ] > 0 :
271271 description .append (
272- f"Déconnection de { disconnections ['count' ]} lignes "
272+ f"Disconnection of { disconnections ['count' ]} lines "
273273 f"({ disconnections ['powerlines' ]} )"
274274 )
275275
276276 # swtich line status
277277 swith_line_impact = impact ["switch_line" ]
278278 if swith_line_impact ["changed" ]:
279279 kpis ["type_of_the_reco" ] = (
280- "Topologique " # pour renvoyer le kpi type_of_the_reco
280+ "Topological " # pour renvoyer le kpi type_of_the_reco
281281 )
282- title .append ("Parade topologique: changer l'état d'une ligne " )
282+ title .append ("Topological: change a line state " )
283283 description .append (
284- f"Changer le statut de { swith_line_impact ['count' ]} lignes "
284+ f"Change the state of { swith_line_impact ['count' ]} lines "
285285 f"({ swith_line_impact ['powerlines' ]} )"
286286 )
287287
288288 # topology
289289 bus_switch_impact = impact ["topology" ]["bus_switch" ]
290290 if len (bus_switch_impact ) > 0 :
291291 kpis ["type_of_the_reco" ] = (
292- "Topologique " # pour renvoyer le kpi type_of_the_reco
292+ "Topological " # pour renvoyer le kpi type_of_the_reco
293293 )
294294 title .append (
295- "Parade topologique: prise de schéma au poste "
295+ "Topological recommendation: Schematic acquisition at substation "
296296 + str (bus_switch_impact ["substation" ])
297297 )
298- description .append ("Changement de bus :" )
298+ description .append ("Busbar change :" )
299299 for switch in bus_switch_impact :
300300 description .append (
301- f"\t \t - Switch bus de { switch ['object_type' ]} id "
302- f"{ switch ['object_id' ]} [au poste { switch ['substation' ]} ]"
301+ f"\t \t - Switch bus of { switch ['object_type' ]} id "
302+ f"{ switch ['object_id' ]} [at station { switch ['substation' ]} ]"
303303 )
304304
305305 assigned_bus_impact = impact ["topology" ]["assigned_bus" ]
306306 disconnect_bus_impact = impact ["topology" ]["disconnect_bus" ]
307307 if len (assigned_bus_impact ) > 0 or len (disconnect_bus_impact ) > 0 :
308308 kpis ["type_of_the_reco" ] = (
309- "Topologique " # pour renvoyer le kpi type_of_the_reco
309+ "Topological " # pour renvoyer le kpi type_of_the_reco
310310 )
311311 title .append (
312- "Parade topologique: prise de schéma au poste "
312+ "Topological recommendation: Schematic acquisition at substation "
313313 + str (assigned_bus_impact [0 ]["substation" ])
314314 )
315315 if assigned_bus_impact :
@@ -320,7 +320,7 @@ def get_parade_info(self, act):
320320 description .append (", " )
321321 cpt = 1
322322 description .append (
323- f" Assigner le bus { assigned ['bus' ]} à "
323+ f" Assign bus { assigned ['bus' ]} to "
324324 f"{ assigned ['object_type' ]} id { assigned ['object_id' ]} "
325325 )
326326 if disconnect_bus_impact :
@@ -331,20 +331,20 @@ def get_parade_info(self, act):
331331 description .append (", " )
332332 cpt = 1
333333 description .append (
334- f"Déconnecter { disconnected ['object_type' ]} avec l' id "
335- f"{ disconnected ['object_id' ]} [au niveau du poste "
334+ f"Disconnect { disconnected ['object_type' ]} with id "
335+ f"{ disconnected ['object_id' ]} [at the substation level "
336336 f"{ disconnected ['substation' ]} ]"
337337 )
338338
339339 # Any of the above cases,
340340 # then the recommendation is most likely "Do nothing"
341341 if not title and act == self .action_do_nothing :
342342 kpis ["type_of_the_reco" ] = (
343- "Ne rien faire " # pour renvoyer le kpi type_of_the_reco
343+ "Do nothing " # pour renvoyer le kpi type_of_the_reco
344344 )
345345 title .append ("Poursuivre" )
346346 description .append (
347- "Poursuite du scénario sans intervention extérieur "
347+ "Continuation of the scenario without operator action "
348348 )
349349
350350 title = "" .join (title )
0 commit comments