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: fix electrical profiles in csv export #10420

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

Yohh
Copy link
Contributor

@Yohh Yohh commented Jan 16, 2025

in exportTrainCSV.ts electrical profiles are based on electrificationRanges, which are not the good ones

use simulatedTrain.electrical_profiles instead

close #9345

@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Jan 16, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 16, 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.67%. Comparing base (00df2a1) to head (15b93a0).
Report is 4 commits behind head on dev.

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

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #10420      +/-   ##
==========================================
- Coverage   81.67%   81.67%   -0.01%     
==========================================
  Files        1071     1071              
  Lines      106118   106127       +9     
  Branches      727      727              
==========================================
+ Hits        86673    86674       +1     
- Misses      19406    19414       +8     
  Partials       39       39              
Flag Coverage Δ
editoast 73.72% <ø> (-0.03%) ⬇️
front 89.37% <100.00%> (+<0.01%) ⬆️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.50% <ø> (ø)
tests 87.05% <ø> (ø)

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.

@Yohh Yohh force-pushed the yoh/front-fix-simulation-csv-export branch from 68927cd to 1a81603 Compare January 17, 2025 09:03
@Yohh Yohh marked this pull request as ready for review January 17, 2025 09:04
@Yohh Yohh requested a review from a team as a code owner January 17, 2025 09:04
@Yohh Yohh requested review from Math-R and RomainValls January 17, 2025 09:14
@Math-R Math-R self-requested a review January 17, 2025 09:45
@Yohh Yohh force-pushed the yoh/front-fix-simulation-csv-export branch from a3fc5e0 to 03738e7 Compare January 17, 2025 09:52
Copy link
Contributor

@Math-R Math-R left a comment

Choose a reason for hiding this comment

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

lgtm

@Yohh Yohh force-pushed the yoh/front-fix-simulation-csv-export branch from 03738e7 to 129cfed Compare January 17, 2025 10:02
in exportTrainCSV.ts electrical profiles are based on
electrificationRanges, which are not the good ones

use simulatedTrain.electrical_profiles instead

Co-authored-by: Math_R_ <[email protected]>
Signed-off-by: Yohh <[email protected]>
@Yohh Yohh force-pushed the yoh/front-fix-simulation-csv-export branch from 129cfed to 15b93a0 Compare January 17, 2025 10:07
@Yohh Yohh enabled auto-merge January 17, 2025 10:11
@Yohh Yohh added this pull request to the merge queue Jan 17, 2025
Merged via the queue into dev with commit c10da00 Jan 17, 2025
27 checks passed
@Yohh Yohh deleted the yoh/front-fix-simulation-csv-export branch January 17, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

simulation result as csv export has wrong electrical profiles
3 participants