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: choose arrivalAt/departureFrom in envelope interpolation #7609

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

bougue-pe
Copy link
Contributor

@bougue-pe bougue-pe commented Jun 4, 2024

interpolateTotalTime() is removed, in favor of one of:

  • interpolateDepartureFrom() (which was the previous behavior)
  • interpolateArrivalAt()

also:

  • little cleanup on clamp

TODO:

  • check if calls to arrival/departure are correct now that it's clarified
  • see if allowance should fully ignore stops (which probably requires more work)

Follow-up on #7322 (comment)

@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2024

Codecov Report

Attention: Patch coverage is 91.66667% with 5 lines in your changes missing coverage. Please review.

Project coverage is 28.61%. Comparing base (2050f03) to head (b7f044e).
Report is 1 commits behind head on dev.

Files Patch % Lines
...ain/java/fr/sncf/osrd/envelope/EnvelopeConcat.java 75.00% 2 Missing and 3 partials ⚠️

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

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #7609      +/-   ##
============================================
- Coverage     28.62%   28.61%   -0.01%     
- Complexity     2038     2052      +14     
============================================
  Files          1244     1244              
  Lines        153668   153680      +12     
  Branches       3012     3018       +6     
============================================
- Hits          43985    43974      -11     
- Misses       107892   107913      +21     
- Partials       1791     1793       +2     
Flag Coverage Δ
core 75.03% <91.66%> (-0.03%) ⬇️
editoast 72.08% <ø> (-0.07%) ⬇️
front 9.90% <ø> (-0.01%) ⬇️
gateway 2.41% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 72.93% <ø> (ø)

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.

@bougue-pe bougue-pe force-pushed the peb/core/improve_interpolate_interface branch 3 times, most recently from 149d726 to 6fde773 Compare June 13, 2024 17:15
@eckter
Copy link
Contributor

eckter commented Jun 14, 2024

Thanks a lot for this PR, it's a lot clearer than before and it must have been tedious

interpolateTotalTime() is removed, in favor of one of:
* interpolateDepartureFrom() (which was the previous behavior)
* interpolateArrivalAt()

also:
* little cleanup on clamp
@bougue-pe bougue-pe force-pushed the peb/core/improve_interpolate_interface branch from b7f044e to f328a62 Compare June 19, 2024 07:52
@bougue-pe bougue-pe enabled auto-merge June 19, 2024 07:52
@bougue-pe bougue-pe added this pull request to the merge queue Jun 19, 2024
Merged via the queue into dev with commit 7496c31 Jun 19, 2024
17 checks passed
@bougue-pe bougue-pe deleted the peb/core/improve_interpolate_interface branch June 19, 2024 08:15
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.

4 participants