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

Double computation when setting margin + specific times #7967

Closed axrolld closed 6 days ago

axrolld commented 1 week ago

What happened?

Asking for some margins + specific times:

image

I got this output:

image

The computed time is correct but it seems like the margins aren't. And the Space-Speed Chart is weird. Both problems seems related.

What did you expect to happen?

The requested time should prevail on the the requested margin. So the real margins should be increased.

And the chart should only have 2 curves anyways (one fastest, one real)

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

  1. Reproduce the screenshots above

What operating system, browser and environment are you using?

OSRD version (top right corner Account button > Informations)

839f7ef