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

Support user-defined time dimension with separate_vars option to save() #135

Closed johnomotani closed 4 years ago

johnomotani commented 4 years ago

Use metadata["bout_tdim"] instead of hard-coded "t" in _get_major_vars() to support user-changed dimension names.

codecov-commenter commented 4 years ago

Codecov Report

Merging #135 into master will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #135      +/-   ##
==========================================
+ Coverage   77.43%   77.44%   +0.01%     
==========================================
  Files          14       14              
  Lines        1826     1827       +1     
  Branches      393      393              
==========================================
+ Hits         1414     1415       +1     
  Misses        277      277              
  Partials      135      135              
Impacted Files Coverage Δ
xbout/boutdataset.py 75.28% <100.00%> (+0.09%) :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 c5058ba...5c99138. Read the comment docs.