Skip to content

Conversation

@Gui-FernandesBR
Copy link
Member

Pull request type

Please check the type of change your PR introduces:

  • Code base additions (bugfix, features)

Pull request checklist

  • Code base additions (for bug fixes / features):

    • Tests for the changes have been added
    • Docs have been reviewed and added / updated if needed
    • Lint (black rocketpy) has passed locally and any fixes were made
    • All tests (pytest --runslow) have passed locally

What is the current behavior?

The forces at the rail buttons can be sctricly negative, therefore the arguments that compute the max forces in the rail buttons will return exactly the opposite of what we usually want: the least intense load.

What is the new behavior?

The Function class now can calculate the maximum (and min) absolute value of a function.

Does this introduce a breaking change?

  • No

Other information

  • I will implement tests in another PR.
  • If you think that we should improve documentation (of Flight or Function), please feel free to suggest it.

@Gui-FernandesBR Gui-FernandesBR added this to the Release v1.0.0 milestone Sep 9, 2023
@Gui-FernandesBR Gui-FernandesBR added the Bug Something isn't working label Sep 9, 2023
Copy link
Member

@MateusStano MateusStano left a comment

Choose a reason for hiding this comment

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

Seems good enough to me. Great PR!

@Gui-FernandesBR
Copy link
Member Author

Nice catch in the last commit 7685955 @phmbressan ,

I appreciate it a lot.

Merging it into beta/v1

@Gui-FernandesBR Gui-FernandesBR merged commit 21d7b0b into beta/v1.0.0 Sep 15, 2023
@Gui-FernandesBR Gui-FernandesBR deleted the bug/max-button-forces-values branch September 15, 2023 23:38
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

None yet

Development

Successfully merging this pull request may close these issues.

5 participants