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

Converting times from NGE to OSRD #8389

Closed
14 tasks
maelysLeratRosso opened this issue Aug 9, 2024 · 0 comments · Fixed by #8416
Closed
14 tasks

Converting times from NGE to OSRD #8389

maelysLeratRosso opened this issue Aug 9, 2024 · 0 comments · Fixed by #8416
Assignees
Labels
area:front Work on Standard OSRD Interface modules module:operational-studies Multi-train simulation with structured studies management

Comments

@maelysLeratRosso
Copy link

maelysLeratRosso commented Aug 9, 2024

Description and goal

Part of ticket #7539

The goal of this issue is to have the conversion of times written in NGE to write them in the train_schedule in OSRD

Acceptance criteria

  • The time of the first node of the trainrun in NGE is converted as the start time in OSRD (NGE gives minutes only, so the hour is arbitrarly chosen to 8h)
  • The time of intermediate nodes of the trainrun in NGE are converted as time contraints on the corresponding points in OSRD :
    • arrival time at the node is the arrival time for the point in OSRD
    • if there is no stop in NGE, there is no stop in OSRD
    • if there is a stop in NGE, there is a stop in OSRD and the stopping time is computed as the difference between the departure and the arrival time
  • The time of the last node of the trainrun in NGE is converted as a time constraint on the last point in OSRD :
    • arrival time at the node is the arrival time for the point in OSRD
    • the stopping time is 0

Implementation plan

  • The time of the first node of the trainrun in NGE is written in the start_time attribute in OSRD
  • For other nodes
    • the arrival is written in arrival of the path_item for the attribute schedule in OSRD
    • if there is no stop, the stopFor attribute of the path_item for schedule in OSRD is None
    • if there is a stop, the stopFor attribute of the path_item for schedule is the difference between the departure time and the arrival time
  • The consecutiveTime from NGE must be used to know which hour to write in the arrival attribute (5 means 8h05 but 65 means 9h05 for example)
@maelysLeratRosso maelysLeratRosso changed the title Converting times at first and intermediate points from NGE to OSRD Converting times from NGE to OSRD Aug 9, 2024
@emersion emersion self-assigned this Aug 9, 2024
@emersion emersion added area:front Work on Standard OSRD Interface modules module:operational-studies Multi-train simulation with structured studies management labels Aug 9, 2024
emersion added a commit that referenced this issue Aug 9, 2024
emersion added a commit that referenced this issue Aug 9, 2024
emersion added a commit that referenced this issue Aug 9, 2024
emersion added a commit that referenced this issue Aug 9, 2024
emersion added a commit that referenced this issue Aug 9, 2024
emersion added a commit that referenced this issue Aug 12, 2024
emersion added a commit that referenced this issue Aug 13, 2024
emersion added a commit that referenced this issue Aug 20, 2024
emersion added a commit that referenced this issue Aug 21, 2024
emersion added a commit that referenced this issue Aug 21, 2024
emersion added a commit that referenced this issue Aug 21, 2024
emersion added a commit that referenced this issue Aug 21, 2024
emersion added a commit that referenced this issue Aug 22, 2024
emersion added a commit that referenced this issue Aug 22, 2024
emersion added a commit that referenced this issue Aug 29, 2024
emersion added a commit that referenced this issue Sep 2, 2024
emersion added a commit that referenced this issue Sep 3, 2024
emersion added a commit that referenced this issue Sep 3, 2024
emersion added a commit that referenced this issue Sep 3, 2024
emersion added a commit that referenced this issue Sep 12, 2024
github-merge-queue bot pushed a commit that referenced this issue Sep 12, 2024
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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants