-
Notifications
You must be signed in to change notification settings - Fork 63
Labels
area:frontWork on Standard OSRD Interface modulesWork on Standard OSRD Interface moduleskind:bugSomething isn't workingSomething isn't workingmodule:operational-studiesMulti-train simulation with structured studies managementMulti-train simulation with structured studies managementmodule:stdcmShort-Term DCMShort-Term DCMseverity:minorMinor severity bugMinor severity bug
Description
What happened?
An example of 3 lines in my output table :
The 3 corresponding lines in the simulation sheet :
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)
Metadata
Metadata
Assignees
Labels
area:frontWork on Standard OSRD Interface modulesWork on Standard OSRD Interface moduleskind:bugSomething isn't workingSomething isn't workingmodule:operational-studiesMulti-train simulation with structured studies managementMulti-train simulation with structured studies managementmodule:stdcmShort-Term DCMShort-Term DCMseverity:minorMinor severity bugMinor severity bug
Type
Projects
Status
In Progress