Skip to content

Commit

Permalink
tests: reproduce new allowance search space discontinuity test in reg…
Browse files Browse the repository at this point in the history
…ression test
  • Loading branch information
Erashin committed Nov 17, 2023
1 parent 09aad64 commit 0cda4bd
Showing 1 changed file with 94 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"error_type": "SCHEDULE",
"code": 500,
"error": "{\"status\":500,\"type\":\"allowance_convergence\",\"context\":{\"trace\":[{\"index\":1}],\"url\":\"http://localhost:8080/standalone_simulation\"},\"message\":\"Failed to converge when computing allowances because of a discontinuity in the search space\"}",
"infra_name": "small_infra",
"path_payload": {
"infra": 5,
"name": "foo",
"steps": [
{
"duration": 201.26315724275267,
"waypoints": [
{
"track_section": "TC0",
"offset": 552.2236003214992
}
]
},
{
"duration": 438.6125451117886,
"waypoints": [
{
"track_section": "TC0",
"offset": 71.51179397666198
}
]
},
{
"duration": 905.27207511261,
"waypoints": [
{
"track_section": "TA6",
"offset": 982.414023681425
}
]
},
{
"duration": 1,
"waypoints": [
{
"track_section": "TA0",
"offset": 1375.331921836674
}
]
}
]
},
"schedule_payload": {
"timetable": 357,
"path": 6918,
"schedules": [
{
"train_name": "foo",
"labels": [],
"departure_time": 25812,
"allowances": [
{
"allowance_type": "standard",
"default_value": {
"value_type": "time_per_distance",
"minutes": 6.5231844502540675
},
"ranges": [
{
"begin_position": 0,
"end_position": 7321.423229665372,
"value": {
"value_type": "time",
"seconds": 24.50736878607825
}
}
],
"capacity_speed_limit": 4.032742864899781,
"distribution": "MARECO"
},
{
"allowance_type": "engineering",
"begin_position": 30.507061762109494,
"end_position": 10137.834504522636,
"value": {
"value_type": "time",
"seconds": 36.224369091662
},
"capacity_speed_limit": 6.7015598167476504,
"distribution": "MARECO"
}
],
"initial_speed": 0,
"rolling_stock_id": 449,
"speed_limit_category": "foo"
}
]
}
}

0 comments on commit 0cda4bd

Please sign in to comment.