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

BUG: Fix Environment.max_expected_height for custom atmosphere #707

Merged
merged 9 commits into from
Oct 9, 2024

Conversation

Gui-FernandesBR
Copy link
Member

Pull request type

  • Code changes (bugfix, features)
  • Code maintenance (refactoring, formatting, tests)
  • ReadMe, Docs and GitHub updates
  • Other (please describe):

Checklist

  • Tests for the changes have been added (if needed)
  • Docs have been reviewed and added / updated
  • Lint (black rocketpy/ tests/) has passed locally
  • All tests (pytest tests -m slow --runslow) have passed locally
  • CHANGELOG.md has been updated (if relevant)

Current behavior

Enter text here...

New behavior

Enter text here...

Breaking change

  • Yes
  • No

Additional information

Enter text here...

@Gui-FernandesBR Gui-FernandesBR requested a review from a team as a code owner October 9, 2024 02:08
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

Project coverage is 75.90%. Comparing base (b9b44dd) to head (7ce1cad).
Report is 18 commits behind head on develop.

Files with missing lines Patch % Lines
rocketpy/environment/environment.py 71.42% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #707      +/-   ##
===========================================
- Coverage    76.02%   75.90%   -0.12%     
===========================================
  Files           99       99              
  Lines        11278    11222      -56     
===========================================
- Hits          8574     8518      -56     
  Misses        2704     2704              

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

@Gui-FernandesBR
Copy link
Member Author

All tests, including slow tests, are passing locally.
The CI is also all checked.
it's time to merge.

@@ -1390,7 +1390,7 @@ def process_custom_atmosphere(
None
"""
# Initialize an estimate of the maximum expected atmospheric model height
max_expected_height = 1000
max_expected_height = self.max_expected_height or 1000
Copy link
Member Author

Choose a reason for hiding this comment

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

this line solves the issue

@Gui-FernandesBR Gui-FernandesBR merged commit 7cab158 into develop Oct 9, 2024
6 of 8 checks passed
@Gui-FernandesBR Gui-FernandesBR deleted the bug/fix-env-max-expected-height branch October 9, 2024 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

1 participant