Skip to content

weird 1s or -1s diff margin for some trains in output table #12823

@maelysLeratRosso

Description

@maelysLeratRosso

What happened?

On this train, I require a margin, and add no requested time except for the departure time. So the calculated margin should be the same as the theoretical margin since no time constrains it. But I see a 1s ou -1s diff margin in some cases, which looks like a rounding problem ?

Image

What did you expect to happen?

I expected the same margins and thus a 0s diff margin

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

Import this train on France infra and observe the first line

timetable (44).json

On which environments the bug occurs?

Dev (SNCF)

On which browser the bug occurs?

Google Chrome

OSRD version (top right corner Account button > Informations)

4ed89f0

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreWork on Core Servicearea:frontWork on Standard OSRD Interface moduleskind:bugSomething isn't workingmodule:operational-studiesMulti-train simulation with structured studies managementseverity:minorMinor severity bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions