Skip to content

Conversation

@WilliamArmst
Copy link
Contributor

@WilliamArmst WilliamArmst commented Nov 23, 2024

Pull request type

Bugfix

Checklist

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

Current behavior

Using ERA5 Reanalysis weather data, the wind speed function was in the incorrect position. See line 1899, where the __set_wind_speed_function references data_array[7] for the wind speed.

New behavior

Wind speed is now calculated correctly.

Breaking change

  • Yes
  • No

Additional information

N/A

@WilliamArmst WilliamArmst requested a review from a team as a code owner November 23, 2024 06:25
@codecov
Copy link

codecov bot commented Nov 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.96%. Comparing base (e1a2061) to head (a631bdc).
Report is 12 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #735      +/-   ##
===========================================
- Coverage    75.99%   75.96%   -0.04%     
===========================================
  Files           95       95              
  Lines        11015    11022       +7     
===========================================
+ Hits          8371     8373       +2     
- Misses        2644     2649       +5     

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


🚨 Try these New Features:

@Gui-FernandesBR Gui-FernandesBR changed the base branch from master to develop November 23, 2024 08:52
@Gui-FernandesBR Gui-FernandesBR changed the title forecast_reanalysis - move wind_speed to correct position BUG: forecast and reanalysis models - move wind_speed to correct position Nov 23, 2024
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.

This was an amazing catch.

@WilliamArmst thank you so much for your contribution!

@Gui-FernandesBR Gui-FernandesBR merged commit ddf71f9 into RocketPy-Team:develop Nov 23, 2024
9 of 10 checks passed
Gui-FernandesBR added a commit that referenced this pull request Nov 23, 2024
…ables dictionary (#736)

* forecast_reanalysis - move wind_speed to correct position

* forecast_reanalysis - move wind_speed to correct position

* DEV: adds #735 to CHANGELOG

* update ECMWF dictionary values

* allow depreciated .nc files

* allow .nc files with only one time variable

* TST? parameterize acceptance test for NDRT 2020 rocket data with multiple environment files

* STY: apply black

---------

Co-authored-by: Gui-FernandesBR <[email protected]>
Co-authored-by: Gui-FernandesBR <[email protected]>
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.

2 participants