boutproject / xBOUT

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

Fix writing of `run_id` by `to_restart()` #259

Closed johnomotani closed 1 year ago

johnomotani commented 1 year ago

Convert str to byte-strings before writing to file in to_restart(). Need to write char-arrays rather than 'strings' so that BOUT++ can read them.

Fixes #256.

codecov-commenter commented 1 year ago

Codecov Report

Merging #259 (56e6bfc) into master (c5a8eda) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #259   +/-   ##
=======================================
  Coverage   73.62%   73.62%           
=======================================
  Files          13       13           
  Lines        2529     2529           
  Branches      607      615    +8     
=======================================
  Hits         1862     1862           
+ Misses        442      440    -2     
- Partials      225      227    +2     
Impacted Files Coverage Δ
xbout/plotting/animate.py 45.37% <0.00%> (ø)
xbout/plotting/plotfuncs.py 48.27% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more