-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add ERTMS-ETCS brake params and signaling to rolling-stock model #10147
Add ERTMS-ETCS brake params and signaling to rolling-stock model #10147
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #10147 +/- ##
========================================
Coverage 81.49% 81.49%
========================================
Files 1058 1061 +3
Lines 104270 104575 +305
Branches 722 722
========================================
+ Hits 84973 85226 +253
- Misses 19256 19308 +52
Partials 41 41
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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've only looked at the editoast
part. Looks good. I'm only worry about the "towed rolling stock" not being handled yet, which might means an incorrect feature (not an incomplete one). What's your take on that?
editoast/editoast_schemas/src/rolling_stock/etcs_brake_params.rs
Outdated
Show resolved
Hide resolved
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.
Nice job!
For the test infra, we may not need something as complex as a clone of small_infra. Maybe an infra with a few tracks, a switch and a few slopes would be enough and easier to maintain. (But it's fine as it is if you prefer it this way)
-> Adding a non-ERTMS section would be nice.
core/kt-fast-collections-generator/src/main/kotlin/collections/ArrayList.kt
Show resolved
Hide resolved
core/kt-osrd-sncf-signaling/src/main/kotlin/fr/sncf/osrd/signaling/etcs_level2/ETCS_LEVEL2.kt
Outdated
Show resolved
Hide resolved
...srd-railjson/src/main/java/fr/sncf/osrd/railjson/schema/rollingstock/RJSEtcsBrakeParams.java
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/api/api_v2/standalone_sim/SimulationEndpoint.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/standalone_sim/etcsContextBuilder.kt
Outdated
Show resolved
Hide resolved
...srd-railjson/src/main/java/fr/sncf/osrd/railjson/schema/rollingstock/RJSEtcsBrakeParams.java
Show resolved
Hide resolved
e28a6af
to
fe27737
Compare
fe27737
to
d1ab72f
Compare
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.
Thank you for the improvements. The editoast
part looks good!
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.
LGTM
Great job there! 👍
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.
Gj! We'll need to report the todo things in our meta issue.
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.
LGTM for the frontend part!
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.
the front LGTM 👍
Also add tests ETCS_LEVEL2 rolling-stock (derived from fast_rolling_stock). Note: not managing towed rolling-tock so far (may not have a max_speed, not sure how to merge brake values). Signed-off-by: Pierre-Etienne Bougué <bougue.pe@proton.me>
Complete duplicate of TVM430 for now. Also add tests ETCS infra (including electrical_profile). Derived from small_infra, just switching all the signaling from BAL to ETCS_LEVEL2. Signed-off-by: Pierre-Etienne Bougué <bougue.pe@proton.me>
Signed-off-by: Pierre-Etienne Bougué <bougue.pe@proton.me>
Note: In StandaloneSimulationTest, using `getRouteBlocks` is another valid option for now, but it uses `recoverBlocks` and we want to get rid of it eventually. Signed-off-by: Pierre-Etienne Bougué <bougue.pe@proton.me>
recovering blocks from route can lead to different results than the pathfinding (especially for signaling system) Signed-off-by: Pierre-Etienne Bougué <bougue.pe@proton.me>
Signed-off-by: Pierre-Etienne Bougué <bougue.pe@proton.me>
Also: remove easy parts and minor improvements Signed-off-by: Pierre-Etienne Bougué <bougue.pe@proton.me>
Signed-off-by: Pierre-Etienne Bougué <bougue.pe@proton.me>
This implies offsetting ETCS ranges (the dangerPoints were already OK) Signed-off-by: Pierre-Etienne Bougué <bougue.pe@proton.me>
As it's only used as output and serde serializes optional fields Signed-off-by: Pierre-Etienne Bougué <bougue.pe@proton.me>
fb63ad4
to
85ccac8
Compare
Note: not managing towed rolling-tock so far (may not have a max_speed, not sure how to merge brake values).
Also:
ETCS_LEVEL2.
✅ Hand-tested only for now:
TODO()
on core ETCS-brake part processing, it "works" as expected, with theTODO()
it fails in corefix #9708 and #9706
TODO after this PR: