-
Notifications
You must be signed in to change notification settings - Fork 45
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: fix all units about rolling resistance #9666
editoast: fix all units about rolling resistance #9666
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files@@ Coverage Diff @@
## dev #9666 +/- ##
=============================================
- Coverage 42.51% 30.41% -12.10%
- Complexity 2271 2272 +1
=============================================
Files 1311 1041 -270
Lines 105413 77197 -28216
Branches 3297 3304 +7
=============================================
- Hits 44812 23482 -21330
+ Misses 58655 51762 -6893
- Partials 1946 1953 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests seem to fail and I haven't tested yet, but the units match.
The database is populated with SI units, which means Newton, kg, meter and seconds. Another important piece of information is: - Units of rolling resistance for traction engines (also named rolling stocks) are in N, N/(m/s) and N/(m/s)² - Units of rolling resistance for towed rolling stocks are in (N/kg), (N/kg)/(m/s) and (N/kg)/(m/s)². Therefore, we need 2 different `struct` for storing those, hence the introduction of `RollingResistancePerWeight`. Signed-off-by: Jean SIMARD <woshilapin@tuziwo.info>
81beeb0
to
3433850
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #9657 (or we hope it does at least).
The database is populated with SI units, which means Newton, kg, meter and seconds.
Another important piece of information is:
Therefore, we need 2 different
struct
for storing those, hence the introduction ofRollingResistancePerWeight
.