mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Test that an explicit weight_windows_on=False rides along with the file
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
52d6b685e8
commit
feef8b1495
1 changed files with 9 additions and 0 deletions
|
|
@ -1199,6 +1199,15 @@ def test_convert_to_multigroup_settings_weight_windows(run_in_tmpdir, monkeypatc
|
|||
# The caller's object is never mutated
|
||||
assert user.weight_windows_file == ww_path
|
||||
|
||||
# An explicit weight_windows_on=False rides along with the file and
|
||||
# overrides the run-time file-implied enable
|
||||
user = openmc.Settings(weight_windows_file=ww_path,
|
||||
weight_windows_on=False)
|
||||
gen = _capture_generation_settings(
|
||||
monkeypatch, model, method='material_wise', settings=user)
|
||||
assert gen.weight_windows_file == ww_path
|
||||
assert gen.weight_windows_on is False
|
||||
|
||||
# The surrogate-geometry methods ignore the file with a warning
|
||||
with pytest.warns(UserWarning, match='material_wise'):
|
||||
gen = _capture_generation_settings(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue