OpenRailAssociation / osrd

An open source web application for railway infrastructure design, capacity analysis, timetabling and simulation
https://osrd.fr
GNU Lesser General Public License v3.0
435 stars 40 forks source link

Warning message for incompatibility between power restriction and electrification mode #3835

Closed bgiuliana closed 6 months ago

bgiuliana commented 1 year ago

Now

The user can select a restriction on a whole path. For each rolling stock all the restriction codes are proposed without filtering on the elctrification mode of the path. This could lead to an invalid selection (restriction mode not compatible with the electrification mode). In this case, the running time calculation will be performed without taking into account the restriction.

The goal

We want to notify that the selected restriction code is not compatible with the electrification mode of the infrastructure on this path. We also want to have a message if no restriction code is selected.

Situation

When the user clicks on "code de restriction de puissance" and selects the code (for example C12S), if some parts of the path have an electrification mode wich is not compatible with the selected code (for example 25000), a message should appear saying "the restriction code C1US is not compatible with electrification at 25000 V"

flomonster commented 6 months ago

Done