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

core: fix the offset of signals inside blocks #3891

Merged
merged 1 commit into from
Apr 13, 2023
Merged

Conversation

multun
Copy link
Contributor

@multun multun commented Apr 13, 2023

When building blocks, the length of some zone paths was appended to blocks they did not belong to. The issue was fixed by updating the length of blocks at the same time as building its list of zone paths.

@multun multun requested a review from a team as a code owner April 13, 2023 10:11
Copy link
Contributor

@Khoyo Khoyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

When building blocks, the length of some zone paths was
appended to blocks they did not belong to. The issue was
fixed by updating the length of blocks at the same time as
building its list of zone paths.
@multun multun enabled auto-merge (rebase) April 13, 2023 10:15
@codecov
Copy link

codecov bot commented Apr 13, 2023

Codecov Report

Merging #3891 (3419258) into dev (edd6608) will decrease coverage by 0.02%.
The diff coverage is 58.33%.

@@             Coverage Diff              @@
##                dev    #3891      +/-   ##
============================================
- Coverage     69.64%   69.62%   -0.02%     
+ Complexity     2027     2026       -1     
============================================
  Files           439      439              
  Lines         22162    22176      +14     
  Branches       1669     1672       +3     
============================================
+ Hits          15434    15440       +6     
- Misses         5928     5931       +3     
- Partials        800      805       +5     
Flag Coverage Δ
core 79.15% <58.33%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...va/fr/sncf/osrd/standalone_sim/SignalProjection.kt 0.00% <0.00%> (ø)
.../fr/sncf/osrd/sim_infra_adapter/RawInfraAdapter.kt 90.90% <33.33%> (-0.89%) ⬇️
...kotlin/fr/sncf/osrd/signaling/impl/BlockBuilder.kt 85.35% <86.66%> (-0.47%) ⬇️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@multun multun merged commit 1114673 into dev Apr 13, 2023
@multun multun deleted the fix-block-signal-offset branch April 13, 2023 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants