Skip to content

Conversation

Lucas-Prates
Copy link
Contributor

Pull request type

  • Code changes (bugfix, features)

Checklist

  • Lint (black rocketpy/ tests/) has passed locally
  • All tests (pytest tests -m slow --runslow) have passed locally

New behavior

Solves issue #671 .

Breaking change

  • No

Additional information

From what I understood from the issue, the information required to be printed was the the ratio of the dry mass by the total mass. I saw some sources computing the propellant mass ratio, which I believe is the opposite (inverse of the specified ratio).

@Lucas-Prates Lucas-Prates requested a review from a team as a code owner October 17, 2024 14:24
@Lucas-Prates Lucas-Prates added the Outputs Dedicated to visualizations enhancements like prints and plots label Oct 17, 2024
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

Attention: Patch coverage is 80.95238% with 4 lines in your changes missing coverage. Please review.

Project coverage is 75.96%. Comparing base (13e66f6) to head (e532489).
Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
rocketpy/motors/motor.py 75.00% 2 Missing ⚠️
rocketpy/rocket/rocket.py 75.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #713      +/-   ##
===========================================
+ Coverage    75.88%   75.96%   +0.07%     
===========================================
  Files           99       99              
  Lines        11222    11258      +36     
===========================================
+ Hits          8516     8552      +36     
  Misses        2706     2706              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Lucas-Prates
Copy link
Contributor Author

Made the suggested changes. The PR is ready for review again!

Copy link
Member

@Gui-FernandesBR Gui-FernandesBR left a comment

Choose a reason for hiding this comment

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

one last thing, @Lucas-Prates please update the CHANGELOG

@Gui-FernandesBR Gui-FernandesBR force-pushed the enh/add_dry_mass_total_mass_ratio branch from b5a4f61 to fc3013f Compare November 2, 2024 00:03
@Gui-FernandesBR Gui-FernandesBR force-pushed the enh/add_dry_mass_total_mass_ratio branch from fc3013f to 234e10d Compare November 2, 2024 00:05
@Gui-FernandesBR Gui-FernandesBR merged commit a126ef6 into develop Nov 7, 2024
8 checks passed
@Gui-FernandesBR Gui-FernandesBR deleted the enh/add_dry_mass_total_mass_ratio branch November 7, 2024 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Outputs Dedicated to visualizations enhancements like prints and plots
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

ENH: Adds the ratio structural mass/total mass to the motor and rocket classes
3 participants