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 integration of Field2D variables #205

Merged
merged 4 commits into from
Dec 24, 2021
Merged

Conversation

johnomotani
Copy link
Collaborator

Previously BoutDataset.integrate_midpoints() failed for Field2D variables.

@johnomotani johnomotani added the bugfix Fix for a bug label Aug 12, 2021
@johnomotani
Copy link
Collaborator Author

@hahahasan could you test please? I've checked that the function now gives a finite output on the simulation that you sent me, and it passes some unit tests, but I haven't checked carefully that the actual value is correct.

@codecov-commenter
Copy link

codecov-commenter commented Aug 12, 2021

Codecov Report

Merging #205 (98c710f) into master (0dba93d) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #205      +/-   ##
==========================================
+ Coverage   75.40%   75.50%   +0.09%     
==========================================
  Files          14       14              
  Lines        2627     2629       +2     
  Branches      616      616              
==========================================
+ Hits         1981     1985       +4     
+ Misses        420      419       -1     
+ Partials      226      225       -1     
Impacted Files Coverage Δ
xbout/boutdataset.py 76.90% <100.00%> (+0.60%) ⬆️

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 0dba93d...98c710f. Read the comment docs.

Copy link
Contributor

@dschwoerer dschwoerer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@johnomotani johnomotani merged commit 9593b26 into master Dec 24, 2021
@johnomotani johnomotani deleted the fix-field2d-integration branch December 24, 2021 19:38
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.

3 participants