Skip to content

Commit

Permalink
Merge pull request #47 from ACCESS-NRI/access-esm1p5-mppnccombine-mpi…
Browse files Browse the repository at this point in the history
…-fix

`ACCESS-ESM1.5` `mppnccombine` MPI Test Fix
  • Loading branch information
CodeGat authored Aug 13, 2024
2 parents 8d2e2ac + 2d538a5 commit 0649090
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "model_config_tests"
version = "0.0.6"
version = "0.0.7"
authors = [
{ name = "ACCESS-NRI" },
]
Expand Down
7 changes: 5 additions & 2 deletions src/model_config_tests/qa/test_access_esm1p5_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ def test_mppnccombine_fast_collate_exe(self, config):
"collate.mpi", "config.yaml"
)

assert config["collate"]["mpi"], error_field_incorrect(
"collate.mpi", "config.yaml", "true"
# Loading the yaml into a dict also converts
# `collate.mpi:true`/`collate.mpi:false` to `True`/`False` so we
# can assert if it is a `bool`.
assert isinstance(config["collate"]["mpi"], bool), error_field_incorrect(
"collate.mpi", "config.yaml", "true or false"
)

0 comments on commit 0649090

Please sign in to comment.