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
415 stars 40 forks source link

core: return wrong electrifications on path (trainSchedule v1) #7655

Closed clarani closed 1 week ago

clarani commented 1 month ago

What happened?

The electrification seems not correct, see image below. The first part of the path in not electrified, however in the backend response, the 25000 electrification starts at 0 image

What did you expect to happen?

The electrification should be correct and nothing should be returned for portions of path where there is no electrification

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

  1. Add a train with a B81500 bimode and a BEH - SAD path with rocket

What operating system, browser and environment are you using?

OSRD version (top right corner Account button > Informations)

.

Castavo commented 1 month ago

In the picture you added, the non-electrified part seems to be near the end of the path rather than its beginning.

flomonster commented 1 week ago

Legacy (train schedule v1)