-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
#1051 fix 2D plot bug #1055
#1051 fix 2D plot bug #1055
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1055 +/- ##
========================================
Coverage 97.63% 97.63%
========================================
Files 237 237
Lines 12371 12386 +15
========================================
+ Hits 12078 12093 +15
Misses 293 293
Continue to review full report at Codecov.
|
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.
Look good, thanks Rob! However, I am not sure why codecov fails. Is it something to do with this PR or is it more general?
the percentage coverage on the difference is too low. I can add a test to catch it |
But quickplot is already tested, right? If so, then it is fine by me :) |
Yeah please add more tests for quickplot as it's easy to break things without realising atm |
I've added some more tests to ensure the variables/plot data in quick plot get updated properly for different time units (and therefore tests shape, transposed vs not, etc.). For 1D plots you can get this info from the also, python was complaining about the number of open figures when running the quick plot tests, so I added a method |
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.
The new tests look great, thanks Rob!
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.
Thanks, tests look good!
Description
Fixes a bug where 2D variables that depend on y and z are transposed in
QuickPlot
.This was introduced in PR #1020 where the way 2D (y,z) variables are processed was changed, and I missed updating in quickplot as the scripts I had been using for 2+1D models all did the plotting manually... sorry!
Fixes #1051
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ flake8
$ python run-tests.py --unit
$ cd docs
and then$ make clean; make html
You can run all three at once, using
$ python run-tests.py --quick
.Further checks: