Skip to content

Conversation

@Caracol3
Copy link
Contributor

Before, selecting a paced train occurrence in the chart could emit a paced_* id instead of an occurrence id. This caused the ETCS braking curves hook to crash because the endpoint expects an OccurrenceId. Now we normalize the id used for ETCS requests to an occurrence id (projection occurrence when available, otherwise occurrence index 0).

close #14783

Signed-off-by: Mathieu <mathieu.coulibaly@sncf.fr>
@Caracol3 Caracol3 requested review from emersion and theocrsb January 20, 2026 17:06
@Caracol3 Caracol3 self-assigned this Jan 20, 2026
@Caracol3 Caracol3 requested a review from a team as a code owner January 20, 2026 17:06
@Caracol3 Caracol3 added the area:front Work on Standard OSRD Interface modules label Jan 20, 2026
@Caracol3 Caracol3 added the module:operational-studies Multi-train simulation with structured studies management label Jan 20, 2026
@Caracol3 Caracol3 moved this to Awaiting merge in Board PI 18 Jan 20, 2026
@theocrsb
Copy link
Contributor

I can't use the ticket timetable because I'm getting an error. Do you have a timetable that works?

@Caracol3
Copy link
Contributor Author

Yes, you can use this one with small infra
timetable (1).json

@theocrsb
Copy link
Contributor

theocrsb commented Jan 21, 2026

Yes, you can use this one with small infra timetable (1).json

image

I get this error when I import

@Caracol3
Copy link
Contributor Author

Caracol3 commented Jan 21, 2026

Weird, have you rebuild recently ?

@theocrsb
Copy link
Contributor

Weird, have you rebuild recently ?

yes :/

Copy link
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused:

  • Only timetable items without a paced attribute and occurrences can be selected. Timetable items with a paced attribute cannot. Why are we getting one?
  • The train ID used for projection should have no impact on the ETCS braking curves displayed on the speed-space chart, I believe? (More generally, projection only applies to the time-space chart.)

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 module:operational-studies Multi-train simulation with structured studies management

Projects

Status: Awaiting merge

Development

Successfully merging this pull request may close these issues.

Selecting a paced train occurence in track occupancy diagram crashes

4 participants