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

editoast, front, core: remove gamma type #9887

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

bougue-pe
Copy link
Contributor

@bougue-pe bougue-pe commented Nov 28, 2024

Part of #9708

Rename gamma to const_gamma to reflect its use: constant gamma braking coefficient used when NOT circulating under ETCS/ERTMS signaling system in m/s^2.

All rolling stock used are CONST, front always provided CONST, this MAX variant was never used, and actually always constant in code use (and not sure if a max-check was missing in computeAcceleration)

🔍 please review by commit.

To merge right after this:

@bougue-pe bougue-pe requested review from a team as code owners November 28, 2024 09:09
@bougue-pe bougue-pe requested a review from bloussou November 28, 2024 09:09
@github-actions github-actions bot added area:railjson Work on Proposed Unified Rail Assets Data Exchange Format area:core Work on Core Service area:front Work on Standard OSRD Interface modules area:editoast Work on Editoast Service area:integration-tests Work on Integration test, by nature related to different services labels Nov 28, 2024
@bougue-pe bougue-pe force-pushed the peb/editoast/rs_model_add_ertms branch from 952a63b to 1dbe992 Compare November 28, 2024 09:11
@codecov-commenter
Copy link

codecov-commenter commented Nov 28, 2024

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

Codecov Report

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

Project coverage is 38.18%. Comparing base (e1bc706) to head (ba39396).
Report is 47 commits behind head on dev.

Files with missing lines Patch % Lines
...onents/RollingStockCard/RollingStockCardDetail.tsx 0.00% 2 Missing ⚠️
front/src/modules/rollingStock/helpers/utils.ts 0.00% 2 Missing ⚠️
editoast/src/models/towed_rolling_stock.rs 50.00% 1 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #9887      +/-   ##
==========================================
- Coverage   38.22%   38.18%   -0.05%     
==========================================
  Files         995      997       +2     
  Lines       91893    92177     +284     
  Branches     1189     1192       +3     
==========================================
+ Hits        35128    35195      +67     
- Misses      56311    56526     +215     
- Partials      454      456       +2     
Flag Coverage Δ
editoast 73.34% <93.75%> (+<0.01%) ⬆️
front 20.16% <42.85%> (-0.08%) ⬇️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 87.00% <ø> (+0.25%) ⬆️

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/editoast/rs_model_add_ertms branch from 1dbe992 to 5f606d7 Compare November 28, 2024 09:59
@bougue-pe bougue-pe removed the request for review from bloussou November 28, 2024 10:02
rename gamma to const_gamma to reflect its use: constant gamma braking
coefficient used when NOT circulating under ETCS/ERTMS signaling system in
m/s^2.

Signed-off-by: Pierre-Etienne Bougué <[email protected]>
@bougue-pe bougue-pe force-pushed the peb/editoast/rs_model_add_ertms branch from 5f606d7 to b75d773 Compare November 28, 2024 10:10
bougue-pe added a commit to bougue-pe/pyOSRD that referenced this pull request Nov 28, 2024
after OpenRailAssociation/osrd#9887

- [ ] To be merged once osrd's PR is merged.
@bougue-pe bougue-pe requested review from Math-R and Caracol3 and removed request for Math-R November 28, 2024 11:04
@bougue-pe bougue-pe requested review from emersion and achrafmohye and removed request for Caracol3 November 28, 2024 11:06
Copy link
Contributor

@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.

Core changes work for me :)

Copy link
Contributor

@woshilapin woshilapin left a comment

Choose a reason for hiding this comment

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

The PR seems good. However, I'm missing some understanding about why it's fine to remove some (possibly not really well-supported) functionality: why removing MAX? It'd be nice to at least explain in the PR description why it was there? Why we decided to remove it? Just put some tracing about this decision so "future us" understand why, at this point in time, we decided to remove MAX.

Copy link
Contributor

@shenriotpro shenriotpro left a comment

Choose a reason for hiding this comment

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

Thanks

Copy link
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

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

LGTM for front/ changes (not tested)

All use of braking is currently constant in code, and in database.
So it is now explicit.

Signed-off-by: Pierre-Etienne Bougué <[email protected]>
@bougue-pe bougue-pe requested a review from Erashin November 28, 2024 17:26
Copy link
Contributor

@achrafmohye achrafmohye left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@bougue-pe bougue-pe added this pull request to the merge queue Dec 2, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 2, 2024
@bougue-pe bougue-pe added this pull request to the merge queue Dec 3, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 3, 2024
@Erashin Erashin added this pull request to the merge queue Dec 3, 2024
Merged via the queue into dev with commit 08d9839 Dec 3, 2024
27 checks passed
@Erashin Erashin deleted the peb/editoast/rs_model_add_ertms branch December 3, 2024 10:04
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:editoast Work on Editoast Service area:front Work on Standard OSRD Interface modules area:integration-tests Work on Integration test, by nature related to different services area:railjson Work on Proposed Unified Rail Assets Data Exchange Format
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants