Skip to content

operational studies : simulation sheet times are not rounded #13783

@maelysLeratRosso

Description

@maelysLeratRosso

What happened?

An example of 3 lines in my output table :

Image

The 3 corresponding lines in the simulation sheet :

Image

The times seem to be truncated instead of rounded

What did you expect to happen?

I would like the times to be rounded, in that case :

  • 15h46
  • 15h47
  • 15h50-15h52

The rule should be :

  • if second is between 0 and 29 : rounded to the previous minute (Example : 05:45:22 -> 05:42)
  • if second is between 30 and 59 : rounded to next minute (Example : 08:04:55 -> 08:05)

Note for later

The real rounding method is this one, maybe we would even do this :

  • if second is between 0 and 14 : rounded to previous minute (Example : 05:45:12 -> 05:42)
  • if second is between 15 and 44 : rounded to half minute, represented by "+" (Example : 16:38:38 -> 16:38+)
  • if second is between 45 and 59 : rounded to next minute (Example : 08:04:55 -> 08:05)

What do you think @Arthur-Lefebvre ? (I think it is common with LMR)

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

Create a train and export its simulation sheet

On which environments the bug occurs?

Recette (SNCF)

On which browser the bug occurs?

Google Chrome

OSRD version (top right corner Account button > Informations)

9968dfe

Metadata

Metadata

Assignees

Labels

area:frontWork on Standard OSRD Interface moduleskind:bugSomething isn't workingmodule:operational-studiesMulti-train simulation with structured studies managementmodule:stdcmShort-Term DCMseverity:minorMinor severity bug

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions