-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
MAINT: moving env_analysis plots and prints #370
Conversation
Quick comment: I was facing a little problem when running the class right before modifying everything. See:
In order to solve it, I simply changed all the Also, to run the new tests, I am using the following command on my vscode terminal: pytest tests/test_environment_anaysis.py --runslow Notice how the test name is mistyped... It says "_anaysis.py" instead of "_analysis.py". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All this file is already in snake_case. How great is that?
😁😁
I actually found another problem with the tests. the test I think we should change this and the naming problem in this PR. Or else we will have to make another PR that will cause conflicts with this one |
Yes, please! Or else this PR feels incomplete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes remaining:
- Update notebooks
- Fix
_anaysis
typo - Add
@patch("matplotlib.pyplot.show")
decorator to allInfo test
Ok! I just didn't want to create a bunch of conflicts within notebooks. But let's go, you're the boss here :) |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@MateusStano , I updated everything as requested. Ready for a re-review now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good! Feel free to merge whenever
Pull request type
Please check the type of change your PR introduces:
Pull request checklist
Please check if your PR fulfills the following requirements, depending on the type of PR:
Code base maintenance (refactoring, formatting, renaming):
black rocketpy
) has passed locally and any fixes were madepytest --runslow
) have passed locallyWhat is the current behavior?
The Environment Analysis class wasn't modified in the last plots/prints overhaul (see #312).
What is the new behavior?
More than 1.5k code lines were moved from the EnvironmentAnalysis file to the corresponding plots and prints file.
This makes the library more readable, and also improve the consistency over the rocketpy classes.
The expected results should be the same, in the background the code is way more organized now.
Does this introduce a breaking change?
plots
andprints
atributes)Other information
--runslow
option included