Skip to content

ENH: Auto-Detection of Pressure Conversion Factor#966

Open
MateusStano wants to merge 2 commits into
developfrom
enh/auto-pressure-conversion-factor
Open

ENH: Auto-Detection of Pressure Conversion Factor#966
MateusStano wants to merge 2 commits into
developfrom
enh/auto-pressure-conversion-factor

Conversation

@MateusStano

Copy link
Copy Markdown
Member

Description

In #955 a pressure unit conversion was added to the set_atmospheric_model. This fixed the pressure units for the new "Forecast" models added in #943. However, currently the default pressure unit is "Pa" when it used to be "hPa", this broke the definition of atmospheric models defined by files (such as reanalysis usage). One example of this breaking can be found in camoes_flight_sim.ipynb

This PR adds the functionality to automatically set the pressure unit based on the File/Model type

Breaking change

  • Yes
  • No

@MateusStano MateusStano requested a review from a team as a code owner June 8, 2026 14:15
@MateusStano MateusStano added Enhancement New feature or request, including adjustments in current codes Environment Enviroment Class related features labels Jun 8, 2026
@MateusStano MateusStano changed the title ENH: auto-detection of pressure conversion factor ENH: Auto-Detection of Pressure Conversion Factor Jun 8, 2026
@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.81818% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.10%. Comparing base (9cf3dd4) to head (caa3891).
⚠️ Report is 74 commits behind head on develop.

Files with missing lines Patch % Lines
rocketpy/environment/tools.py 42.85% 4 Missing ⚠️
rocketpy/environment/environment.py 92.30% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #966      +/-   ##
===========================================
+ Coverage    80.27%   81.10%   +0.83%     
===========================================
  Files          104      113       +9     
  Lines        12769    14575    +1806     
===========================================
+ Hits         10250    11821    +1571     
- Misses        2519     2754     +235     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request, including adjustments in current codes Environment Enviroment Class related features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant