boutproject / xBOUT

Collects BOUT++ data from parallelized simulations into xarray.
https://xbout.readthedocs.io/en/latest/
Apache License 2.0
22 stars 10 forks source link

to_field_aligned() and from_field_aligned() methods for BoutDataset #181

Closed johnomotani closed 3 years ago

johnomotani commented 3 years ago

These methods return a new Dataset with all z-dependent variables transformed to or from field-aligned coordinates (if a variable is already aligned or not-aligned respectively it is left unchanged).

Fixes #177.

codecov-io commented 3 years ago

Codecov Report

Merging #181 (ab524a0) into master (0e58b2c) will increase coverage by 0.13%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #181      +/-   ##
==========================================
+ Coverage   75.88%   76.02%   +0.13%     
==========================================
  Files          14       14              
  Lines        2418     2432      +14     
  Branches      556      560       +4     
==========================================
+ Hits         1835     1849      +14     
  Misses        385      385              
  Partials      198      198              
Impacted Files Coverage Δ
xbout/boutdataset.py 76.58% <100.00%> (+0.98%) :arrow_up:

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 0e58b2c...ab524a0. Read the comment docs.