Skip to content

Commit

Permalink
fixup! core, editoast: add flag to ignore infra speed limits
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Rolland <[email protected]>
  • Loading branch information
Alex Rolland authored and woshilapin committed Feb 5, 2025
1 parent 866cf6d commit 37324e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions editoast/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11884,6 +11884,8 @@ components:
options:
type: object
properties:
ignore_infra_speed_limits:
type: boolean
use_electrical_profiles:
type: boolean
additionalProperties: false
Expand Down Expand Up @@ -11979,6 +11981,8 @@ components:
TrainScheduleOptions:
type: object
properties:
ignore_infra_speed_limits:
type: boolean
use_electrical_profiles:
type: boolean
additionalProperties: false
Expand Down
1 change: 1 addition & 0 deletions editoast/src/views/train_schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ fn build_simulation_request(
options: train_schedule.options.clone(),
physics_consist,
electrical_profile_set_id,
ignore_infra_speed_limits: false,
}
}

Expand Down
2 changes: 2 additions & 0 deletions front/src/common/api/generatedEditoastApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3254,6 +3254,7 @@ export type Margins = {
values: string[];
};
export type TrainScheduleOptions = {
ignore_infra_speed_limits?: boolean;
use_electrical_profiles?: boolean;
};
export type PathItem = PathItemLocation & {
Expand Down Expand Up @@ -3612,6 +3613,7 @@ export type TrainScheduleBase = {
values: string[];
};
options?: {
ignore_infra_speed_limits?: boolean;
use_electrical_profiles?: boolean;
};
path: (PathItemLocation & {
Expand Down

0 comments on commit 37324e3

Please sign in to comment.