#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.
|
brosaplanella
left a comment
There was a problem hiding this comment.
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 |
brosaplanella
left a comment
There was a problem hiding this comment.
The new tests look great, thanks Rob!
valentinsulzer
left a comment
There was a problem hiding this comment.
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 docsand then$ make clean; make htmlYou can run all three at once, using
$ python run-tests.py --quick.Further checks: