Skip to content

Conversation

@johnomotani
Copy link
Collaborator

Pulled out from #231 because they may be independently useful, so useful to merge before #231 is finished.

This file is generated by setuptools_scm, so does not need to be tracked
by git.
BOUT++ does this, so add it for consistency.
Having an explicit exclude list rather than an include list means that
we can still skip variables that are created by xBOUT, but include any
scalar variables that a PhysicsModel might have added to restart files.

Extra scalar variables in restart files should not (usually at least) do
any harm, so the 'exclude' approach should cover more use cases
correctly.
Allows using `drop_variables` argument, which is sometimes useful.
These are needed in order to apply geometry to the grid Dataset.
@johnomotani johnomotani added the enhancement New feature or request label Jan 16, 2022
@pep8speaks
Copy link

pep8speaks commented Jan 16, 2022

Hello @johnomotani! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2022-01-16 20:04:43 UTC

@codecov-commenter
Copy link

codecov-commenter commented Jan 16, 2022

Codecov Report

Merging #232 (27a75f7) into master (f2dd91e) will decrease coverage by 0.53%.
The diff coverage is 52.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #232      +/-   ##
==========================================
- Coverage   75.91%   75.38%   -0.54%     
==========================================
  Files          15       15              
  Lines        2745     2779      +34     
  Branches      655      668      +13     
==========================================
+ Hits         2084     2095      +11     
- Misses        425      442      +17     
- Partials      236      242       +6     
Impacted Files Coverage Δ
xbout/boutdataset.py 76.21% <ø> (ø)
xbout/region.py 83.55% <0.00%> (-2.33%) ⬇️
xbout/geometries.py 69.63% <25.00%> (-1.41%) ⬇️
xbout/utils.py 83.38% <75.00%> (-0.77%) ⬇️
xbout/load.py 78.01% <100.00%> (+0.23%) ⬆️

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 f2dd91e...27a75f7. Read the comment docs.

@johnomotani johnomotani merged commit 8ca5f1a into master Jan 19, 2022
@johnomotani johnomotani deleted the better-gridfile-restart-handling branch January 19, 2022 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants