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

HOTFIX: Negative Static Margin #476

Merged
merged 4 commits into from
Nov 21, 2023

Conversation

giovaniceotto
Copy link
Member

Pull request type

  • Code changes (bugfix, features)

Checklist

  • Tests for the changes have been added (if needed)
  • Lint (black rocketpy/ tests/) has passed locally
  • All tests (pytest --runslow) have passed locally

Current behavior

When using the nose_to_tail coordinate system for the Rocket class, the sign of the static margin was inverted since a sign correction was applied twice, as noticed by @MateusStano.

New behavior

Things just work now. One of the sign corrections was removed. Ironically, we had tests for this, but they were not working properly. This has also been fixed.

Version has been bumped up to v1.1.1 so that a hotfix can be released.

Breaking change

  • No

Additional information

This bug was reported by Bob Brown [D&W] (MΦNK3Y#2638) through our Discord server.

@Gui-FernandesBR Gui-FernandesBR added the Bug Something isn't working label Nov 21, 2023
@Gui-FernandesBR Gui-FernandesBR added this to the Release v1.X.0 milestone Nov 21, 2023
Copy link

codecov bot commented Nov 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (afcbf02) 70.80% compared to head (f398875) 70.70%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #476      +/-   ##
==========================================
- Coverage   70.80%   70.70%   -0.10%     
==========================================
  Files          55       55              
  Lines        9234     9234              
==========================================
- Hits         6538     6529       -9     
- Misses       2696     2705       +9     
Flag Coverage Δ
unittests 70.70% <ø> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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 Looks Good To Me

@Gui-FernandesBR
Copy link
Member

@giovaniceotto I think u can merge this one already.

Could u create release notes pls?

@giovaniceotto
Copy link
Member Author

@giovaniceotto I think u can merge this one already.

I will let the boss @MateusStano do it in case there is anything else relevant that I am not aware of.

Could u create release notes pls?

I wanted to create it in the file, but it isn't in master yet. So I'll just do it here to help the release:

Fixed

  • Opposite static margin bug, which affected all rockets defined using a nose_to_tail coordinate system, causing positive static margins to become negative and negative ones to become positive. Note: this bug did not lead to any issues in terms of the trajectory simulation itself.

@MateusStano MateusStano changed the base branch from master to hotfix/v1.1.1 November 21, 2023 22:57
@MateusStano MateusStano changed the base branch from hotfix/v1.1.1 to master November 21, 2023 22:57
@MateusStano MateusStano changed the base branch from master to hotfix/v1.1.1 November 21, 2023 22:59
@MateusStano MateusStano merged commit 8428fd8 into hotfix/v1.1.1 Nov 21, 2023
@MateusStano MateusStano deleted the hotfix/negative-static-margin branch November 21, 2023 23:00
@MateusStano MateusStano mentioned this pull request Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

4 participants