-
Notifications
You must be signed in to change notification settings - Fork 65
Avoid crash when selecting paced occurences in TOD #14816
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
base: dev
Are you sure you want to change the base?
Avoid crash when selecting paced occurences in TOD #14816
Conversation
Signed-off-by: Mathieu <mathieu.coulibaly@sncf.fr>
|
I can't use the ticket timetable because I'm getting an error. Do you have a timetable that works? |
|
Yes, you can use this one with small infra |
I get this error when I import |
|
Weird, have you rebuild recently ? |
yes :/ |
emersion
left a comment
There was a problem hiding this 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
pacedattribute and occurrences can be selected. Timetable items with apacedattribute 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.)

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 anOccurrenceId. Now we normalize theidused for ETCS requests to an occurrence id (projection occurrence when available, otherwise occurrence index 0).close #14783