-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
#1554 fix indexing for FEM entries #1556
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1556 +/- ##
===========================================
+ Coverage 97.77% 98.28% +0.50%
===========================================
Files 242 310 +68
Lines 12639 17398 +4759
===========================================
+ Hits 12358 17099 +4741
- Misses 281 299 +18
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.
Looks good, thanks Rob! Just see my comment on the commented line.
@@ -429,6 +429,7 @@ def test_plot_2plus1D_spm(self): | |||
quick_plot.slider_update(1) | |||
|
|||
# check 2D (y,z space) variables update properly for different time units | |||
# Note: these should be the transpose of the entries in the processed variable |
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.
I am confused: the comment says it should be the transpose but below it is not transposed
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.
In the test we do, e.g., np.testing.assert_array_almost_equal(qp_data.T, phi_n[:, :, 0])
so that qp_data
is transposed
Description
Fixes the order of the indexing for the entries of variables solved using FEM
Fixes #1554
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: