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: compute ETCS LoA EBD foot and curve more accurately #10565

Open
wants to merge 1 commit into
base: alch/core/compute-min-envelope-part
Choose a base branch
from

Conversation

Erashin
Copy link
Contributor

@Erashin Erashin commented Jan 29, 2025

Requires #10564.
Fixes #10430 (see description for further information).

@github-actions github-actions bot added the area:core Work on Core Service label Jan 29, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 29, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.18%. Comparing base (9ef34ab) to head (283b74b).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@                           Coverage Diff                           @@
##           alch/core/compute-min-envelope-part   #10565      +/-   ##
=======================================================================
+ Coverage                                80.84%   81.18%   +0.34%     
=======================================================================
  Files                                     1115      797     -318     
  Lines                                   112518    79825   -32693     
  Branches                                   759      759              
=======================================================================
- Hits                                     90961    64809   -26152     
+ Misses                                   21502    14961    -6541     
  Partials                                    55       55              
Flag Coverage Δ
editoast ?
front 89.89% <ø> (-0.01%) ⬇️
gateway 2.49% <ø> (ø)
osrdyne 2.53% <ø> (ø)
railjson_generator 87.58% <ø> (ø)
tests ?

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.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Erashin Erashin force-pushed the alch/core/fix-loa-ebd-curve branch from ad04ea6 to 786fca9 Compare January 29, 2025 14:12
@Erashin Erashin changed the title core: compute ETCS LoA EBD foot and cuvre more accurately core: compute ETCS LoA EBD foot and curve more accurately Feb 10, 2025
@Erashin Erashin force-pushed the alch/core/fix-loa-ebd-curve branch from 786fca9 to 0d7cb7b Compare February 10, 2025 13:20
@Erashin Erashin force-pushed the alch/core/fix-loa-ebd-curve branch 3 times, most recently from 9237395 to 29b34df Compare February 14, 2025 08:29
@github-actions github-actions bot added the area:integration-tests Work on Integration test, by nature related to different services label Feb 14, 2025
@Erashin Erashin force-pushed the alch/core/fix-loa-ebd-curve branch 6 times, most recently from d3c5bb0 to afef4ad Compare February 14, 2025 10:08
@Erashin Erashin marked this pull request as ready for review February 14, 2025 10:08
@Erashin Erashin requested review from a team as code owners February 14, 2025 10:08
@Erashin Erashin requested review from eckter and bougue-pe February 14, 2025 10:08
@Erashin Erashin force-pushed the alch/core/fix-loa-ebd-curve branch from afef4ad to 8ad93aa Compare February 14, 2025 10:26
Copy link
Contributor

@bougue-pe bougue-pe left a comment

Choose a reason for hiding this comment

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

Thanks, quite elegant changes (discovering the idea of initEnvelopePart changes)

Only nits, so feel free to reply-reject/resolve them, it's fine by me as-is 🙏

Copy link
Contributor Author

@Erashin Erashin left a comment

Choose a reason for hiding this comment

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

@bougue-pe : everything solved in 870da53.

@Erashin Erashin requested a review from bougue-pe February 14, 2025 12:58
@Erashin Erashin force-pushed the alch/core/fix-loa-ebd-curve branch 3 times, most recently from b33e1a6 to 2b9699b Compare February 17, 2025 10:10
@Erashin Erashin force-pushed the alch/core/fix-loa-ebd-curve branch 2 times, most recently from 931b4d0 to 3749995 Compare February 17, 2025 10:45
@Erashin Erashin force-pushed the alch/core/fix-loa-ebd-curve branch 3 times, most recently from fcf5bbd to 46a7572 Compare March 14, 2025 08:51
@Erashin Erashin changed the base branch from dev to alch/core/compute-min-envelope-part March 14, 2025 08:51
@Erashin Erashin force-pushed the alch/core/fix-loa-ebd-curve branch from 46a7572 to c0abe96 Compare March 14, 2025 08:54
val guiPosition =
if (speed > guiCurve.maxSpeed || speed < guiCurve.minSpeed) Double.POSITIVE_INFINITY
else guiCurve.interpolatePosition(speed)
if (speed > guiPart.maxSpeed || speed < guiPart.minSpeed) Double.POSITIVE_INFINITY
Copy link
Contributor Author

@Erashin Erashin Mar 14, 2025

Choose a reason for hiding this comment

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

PR is not rebased on DEV yet, this change will disappear to become if(...) guipart.beginPos.

@Erashin Erashin force-pushed the alch/core/compute-min-envelope-part branch 2 times, most recently from eb8ebd8 to 9ef34ab Compare March 14, 2025 10:18
@Erashin Erashin force-pushed the alch/core/fix-loa-ebd-curve branch from c0abe96 to 320a174 Compare March 14, 2025 10:19
@Erashin Erashin force-pushed the alch/core/fix-loa-ebd-curve branch 3 times, most recently from 283b74b to 320a174 Compare March 17, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core Work on Core Service area:integration-tests Work on Integration test, by nature related to different services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

core: etcs: for LOAs, compute EBD foot and EBD curve more accurately
4 participants