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: stdcm: identify fake service tracks and report takeover stops #10566

Closed
eckter opened this issue Jan 29, 2025 · 0 comments · Fixed by #10869
Closed

front: stdcm: identify fake service tracks and report takeover stops #10566

eckter opened this issue Jan 29, 2025 · 0 comments · Fixed by #10869
Assignees
Labels
area:front Work on Standard OSRD Interface modules

Comments

@eckter
Copy link
Contributor

eckter commented Jan 29, 2025

See https://github.com/osrd-project/osrd-confidential/issues/946 https://github.com/osrd-project/osrd-dags/issues/675

We add fake service track as a temporary solution to get takeover stops.

We need to identify when the train enters and leave this fake track (using fake operational points). We'd then remove the fake OPs and replace them with an extra stop.

EDIT: as the output table is exclusively built from the front-end, this is actually a front issue

The back-end would return data that would render like this:

OP CH end passage start
= BV 02:45
= P2 02:45
= RL 02:45
= TR 02:45
OVERTAKE_0_A;Ambérieu 0 02:45
OVERTAKE_1_B;Ambérieu 0 03:08
Ambérieu P3 03:08
= FR 03:09
= FR 03:09

We need it to look like that, like a single stop:

OP CH end passage start
= BV 02:45
= P2 02:45
= RL 02:45
= TR 02:45
Ambérieu 0 02:45 (23 min) 03:08
Ambérieu P3 03:08
= FR 03:09
= FR 03:09

We can discuss the formatting of the initial OP field further, it's not set in stone. The way I imagine it would be to match any consecutive OVERTAKE.*, and then only use what's after a ;.

Note: this is all a temporary solution, it would be best to have a lightweight commit that can be git reverted.

@eckter eckter added the area:core Work on Core Service label Jan 29, 2025
@eckter eckter assigned eckter and louisgreiner and unassigned eckter Jan 29, 2025
@eckter eckter changed the title core: stdcm: identify fake service tracks and report takeover stops front: stdcm: identify fake service tracks and report takeover stops Feb 13, 2025
@eckter eckter added area:front Work on Standard OSRD Interface modules and removed area:core Work on Core Service labels Feb 13, 2025
@Synar Synar self-assigned this Feb 13, 2025
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
Projects
None yet
3 participants