-
Notifications
You must be signed in to change notification settings - Fork 46
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
core: fallback for speed limit tags #7903
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 #7903 +/- ##
============================================
- Coverage 28.67% 28.43% -0.24%
- Complexity 2058 2075 +17
============================================
Files 1249 1264 +15
Lines 154405 155174 +769
Branches 3040 3073 +33
============================================
- Hits 44271 44123 -148
- Misses 108321 109222 +901
- Partials 1813 1829 +16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
core/kt-osrd-rjs-parser/src/main/kotlin/fr/sncf/osrd/RawInfraRJSParser.kt
Outdated
Show resolved
Hide resolved
core/src/test/kotlin/fr/sncf/osrd/sim_infra_adapter/PathPropertiesTests.kt
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.
Cool
Don't we want to check whether tags inside a fallback list are present inside the config file ?
core/kt-osrd-sim-infra/src/main/kotlin/fr/sncf/osrd/sim_infra/impl/RawInfraImpl.kt
Outdated
Show resolved
Hide resolved
core/kt-osrd-rjs-parser/src/main/kotlin/fr/sncf/osrd/RawInfraRJSParser.kt
Outdated
Show resolved
Hide resolved
core/kt-osrd-sim-infra/src/main/kotlin/fr/sncf/osrd/sim_infra/impl/RawInfraImpl.kt
Show resolved
Hide resolved
core/kt-osrd-rjs-parser/src/main/kotlin/fr/sncf/osrd/RawInfraRJSParser.kt
Outdated
Show resolved
Hide resolved
8c7694d
to
b907320
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.
LGTM
Did not test though
also: little fix on Speed.toString()
b907320
to
6919758
Compare
Only handling the speed for now, no work on output, warnings and logs.
Extra-code to handle long-names currently used on speedLimitTag (both in infra or in requested simu).
also: little fix on
Speed.toString()
Test:
Messagerie - ME100
somewhere else than South-East(to be able to select it), then using that speedLimitTag on a train to trigger fallback to MA100 on South-East.Fix #7715