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 linestring interpolation #6015

Merged
merged 1 commit into from
Dec 6, 2023
Merged

Conversation

multun
Copy link
Contributor

@multun multun commented Dec 5, 2023

The previous code sometimes failed when two linestring points share the same coordinates. I decided on replacing the previous algorithm by a tried and tested approach instead of working out its kinks.

@multun multun requested a review from a team as a code owner December 5, 2023 18:31
@multun multun requested a review from Erashin December 5, 2023 18:31
@multun multun force-pushed the fix-linestring-interpolation branch from 4aa9cd3 to cd67976 Compare December 5, 2023 18:34
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (e62a553) 26.49% compared to head (e851720) 26.49%.
Report is 3 commits behind head on dev.

Files Patch % Lines
...om/src/main/java/fr/sncf/osrd/geom/LineString.java 69.56% 3 Missing and 4 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #6015      +/-   ##
============================================
- Coverage     26.49%   26.49%   -0.01%     
  Complexity     2117     2117              
============================================
  Files           930      930              
  Lines        122661   122683      +22     
  Branches       2664     2667       +3     
============================================
+ Hits          32499    32500       +1     
- Misses        88590    88608      +18     
- Partials       1572     1575       +3     
Flag Coverage Δ
core 78.97% <69.56%> (-0.04%) ⬇️
editoast 74.51% <ø> (-0.01%) ⬇️
front 9.31% <ø> (-0.01%) ⬇️
gateway 2.75% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@multun multun force-pushed the fix-linestring-interpolation branch from cd67976 to 1d934cd Compare December 5, 2023 19:41
The previous code sometimes failed when two linestring points share the same coordinates.
I decided on replacing the previous algorithm by a tried and tested approach instead of working out its kinks.
@multun multun force-pushed the fix-linestring-interpolation branch from 1d934cd to e851720 Compare December 5, 2023 20:17
@Khoyo Khoyo added this pull request to the merge queue Dec 6, 2023
Merged via the queue into dev with commit e3e89a0 Dec 6, 2023
@Khoyo Khoyo deleted the fix-linestring-interpolation branch December 6, 2023 08:58
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