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

front: stdcm: fix time interpolation in output table #9640

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

eckter
Copy link
Contributor

@eckter eckter commented Nov 7, 2024

Fix #9626

The back-end returns sparse data for time per position and expects the front-end to interpolate, but we didn't. The results were significantly off.

This fixes both the table displayed in the result page and the one in the pdf file.

@eckter eckter requested a review from a team as a code owner November 7, 2024 15:57
@eckter eckter requested review from Akctarus and kmer2016 November 7, 2024 15:57
@eckter eckter force-pushed the ech/fix-stdcm-output-interpolation branch from c5c9dac to c9a2096 Compare November 7, 2024 15:58
The back-end returns sparse data for time per position
and expects the front-end to interpolate, but we didn't.
The results were significantly off.

This fixes both the table displayed in the result page
and the one in the pdf file.

Signed-off-by: Eloi Charpentier <[email protected]>
@eckter eckter force-pushed the ech/fix-stdcm-output-interpolation branch from c9a2096 to 6bceef8 Compare November 7, 2024 16:03
@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2024

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

Codecov Report

Attention: Patch coverage is 11.11111% with 8 lines in your changes missing coverage. Please review.

Project coverage is 42.51%. Comparing base (a92037a) to head (6bceef8).
Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
...cations/stdcm/utils/formatSimulationReportSheet.ts 11.11% 8 Missing ⚠️

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

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #9640      +/-   ##
============================================
- Coverage     42.51%   42.51%   -0.01%     
  Complexity     2272     2272              
============================================
  Files          1312     1312              
  Lines        105555   105563       +8     
  Branches       3304     3304              
============================================
- Hits          44879    44875       -4     
- Misses        58723    58735      +12     
  Partials       1953     1953              
Flag Coverage Δ
core 75.05% <ø> (ø)
editoast 73.75% <ø> (-0.03%) ⬇️
front 18.79% <11.11%> (+<0.01%) ⬆️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 86.74% <ø> (ø)

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.

Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

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

LGTM & tested ✅

Copy link
Contributor

@Akctarus Akctarus left a comment

Choose a reason for hiding this comment

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

Tested, LGTM :)

@eckter eckter added this pull request to the merge queue Nov 7, 2024
Merged via the queue into dev with commit cba6e94 Nov 7, 2024
25 checks passed
@eckter eckter deleted the ech/fix-stdcm-output-interpolation branch November 7, 2024 18:24
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.

stdcm - times in the pdf simulation sheet are not correct
4 participants