Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

front: time offset when exporting simulation results to CSV #10873

Closed
emersion opened this issue Feb 20, 2025 · 0 comments · Fixed by #10876
Closed

front: time offset when exporting simulation results to CSV #10873

emersion opened this issue Feb 20, 2025 · 0 comments · Fixed by #10876
Labels
area:front Work on Standard OSRD Interface modules kind:bug Something isn't working

Comments

@emersion
Copy link
Member

emersion commented Feb 20, 2025

What happened?

Given these simulation results:

Image

The following CSV file is produced, with time shifted by 1 hour:

op;ch;trackName;time;seconds;position;speed;speedLimit;lineCode;electrificationType;electrificationMode;electrificationProfile
;;;01:12:00;1704067920;0;0;160;;;;
West_station;BV;V1;01:12:00;1704067920;0;0;160;424242;;;
;;V1;01:12:00;1704067920;0;0;160;424242;;;
;;V1;01:12:00;1704067920;0;0;160;424242;electrification;1500V;
;;V1;01:12:00;1704067920;0;0;160;424242;electrification;1500V;
;;V1;01:12:01;1704067921,9;0,001;3,962;160;424242;electrification;1500V;
;;V1;01:12:02;1704067922,1;0,001;3,962;160;424242;neutral_section;;
;;V1;01:12:02;1704067922,1;0,001;3,962;160;424242;electrification;25000V;
;;V1;01:12:09;1704067929,9;0,01;3,962;160;424242;neutral_section;;
;;V1;01:12:09;1704067929,9;0,01;3,962;160;424242;electrification;25000V;
;;V1;01:12:41;1704067961,2;0,044;3,962;160;424242;neutral_section;;
;;V1;01:12:41;1704067961,7;0,045;3,962;160;424242;electrification;25000V;
;;V1;01:12:02;1704067922,1;1,26;3,962;160;424242;electrification;25000V;
;;V1;01:12:02;1704067922,1;1,31;3,962;160;424242;electrification;25000V;
;;V1;01:12:09;1704067929,9;9,8;3,962;160;424242;electrification;25000V;
;;V1;01:12:09;1704067929,9;9,9;3,962;160;424242;electrification;25000V;
;;V1;04:11:20;1704078680,9;11,839;3,962;160;424242;electrification;25000V;
;;V1;04:11:30;1704078690,2;11,849;3,6;160;424242;electrification;25000V;
;;V1;04:11:32;1704078692,2;11,85;0;160;424242;electrification;25000V;
;;V1;04:12:32;1704078752,2;11,85;0;160;424242;electrification;25000V;
Mid_West_station;BV;V1;04:11:32;1704078692,2;11,85;0;160;434343;electrification;25000V;
;;V1;04:12:34;1704078754,2;11,851;4,178;160;434343;electrification;25000V;
;;V1;04:12:34;1704078754,7;11,852;5,086;160;434343;electrification;25000V;
;;V1;07:02:55;1704088975,6;26,293;5,086;160;434343;electrification;25000V;
Mid_East_station;BV;V1;07:03:01;1704088981,5;26,3;4,92;160;434343;electrification;25000V;
;;V1;07:03:31;1704089011,6;26,338;4,075;160;434343;electrification;25000V;
;;V1;07:04:19;1704089059,6;26,391;4,263;160;434343;electrification;25000V;
;;V1;07:04:45;1704089085,1;26,424;5,086;160;434343;electrification;25000V;
;;V1;01:12:41;1704067961,2;44,3;3,962;160;434343;electrification;25000V;
;;V1;01:12:41;1704067961,7;44,8;3,962;160;434343;electrification;25000V;
;;V1;10:53:21;1704102801;45,803;5,086;160;434343;electrification;25000V;
;;V1;10:53:59;1704102839,1;45,849;3,6;160;434343;electrification;25000V;
;;V1;10:54:01;1704102841,1;45,85;0;160;434343;electrification;25000V;
North_East_station;BV;V1;10:54:01;1704102841,1;45,85;0;160;464646;electrification;25000V;

What did you expect to happen?

CSV should look the same as the table.

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

Export this train schedule to CSV:

train_schedules(7).json

On which environments the bug occurs?

Recette (SNCF), Local

On which browser the bug occurs?

Firefox

OSRD version (top right corner Account button > Informations)

975ec76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules kind:bug Something isn't working
Projects
None yet
1 participant