Skip to content
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

Fix to_field_aligned()/from_field_aligned() for transposed arrays #226

Merged
merged 3 commits into from
Dec 24, 2021

Conversation

johnomotani
Copy link
Collaborator

If the zeta dimension is not the last one in the array, previously to_field_aligned() and from_field_aligned() would fail, due to a missing axis argument to fft.irfft(). Fix this and add tests.

Ensures transposed arrays (which don't necessarily have the 'zeta'
dimension last) are handled correctly.
@johnomotani johnomotani added the bugfix Fix for a bug label Oct 16, 2021
@codecov-commenter
Copy link

codecov-commenter commented Oct 16, 2021

Codecov Report

Merging #226 (d01d28c) into master (d9fb747) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #226   +/-   ##
=======================================
  Coverage   75.68%   75.68%           
=======================================
  Files          15       15           
  Lines        2682     2682           
  Branches      631      631           
=======================================
  Hits         2030     2030           
  Misses        420      420           
  Partials      232      232           
Impacted Files Coverage Δ
xbout/boutdataarray.py 78.12% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9fb747...d01d28c. Read the comment docs.

@johnomotani johnomotani merged commit 76533af into master Dec 24, 2021
@johnomotani johnomotani deleted the fix-to_field_aligned-wrong-dim-order branch December 24, 2021 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fix for a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants