OpenRailAssociation / osrd

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

core: simulation results include electrification ranges even for non-electrified trains #5891

Closed eckter closed 9 months ago

eckter commented 9 months ago

What happened?

When accessing the result of a simulation, the result include electrification ranges and electrification usages even for non-electrified rolling stocks.

What did you expect to happen?

The response should match the effort curve used by the train in each interval, it should always be non-electrified for non-electric trains

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

Run a simulation with a non-electric train and check the electrification ranges

What operating system, browser and environment are you using?

OSRD version (top right corner Account button > Informations)

532a211

eckter commented 9 months ago

closing: this is actually the expected behavior, electrification ranges that aren't used by the train are marked with mode_handled=false