OpenRailAssociation / osrd

An open source web application for railway infrastructure design, capacity analysis, timetabling and simulation
https://osrd.fr
458 stars 43 forks source link

Missing last interval in power restrictions selector #8086

Open RomainValls opened 3 months ago

RomainValls commented 3 months ago

What happened?

Once a path is created (origin and destination), the power restriction selector identifies the "electrification change points" to create intervals in the selector. Here, on a Paris - Marseille (PLY - MSC) path, one interval is missing at the end of the selector. We can see an electrification value at the right end of the selector, but it is outside the selector. Capture d’écran 2024-07-17 à 10 04 53

What did you expect to happen?

We should have the last electrification interval inside the power restriction selector. Capture d’écran 2024-07-17 à 10 08 00

How can we reproduce it (as minimally and precisely as possible)?

  1. Go to a V2 scenario and select an itinerary
  2. Go to Simulation parameters
  3. We can see a value at the right end of the selector, outside of it.

On which environments the bug occurs?

Local, Dev (DgexSol)

On which browser the bug occurs?

Firefox, Google Chrome

OSRD version (top right corner Account button > Informations)

64f0491

axrolld commented 2 months ago

The bug's still here