Skip to content

Commit 5918564

Browse files
authored
Bump up tolerance for flaky activation test (#3560)
1 parent eaed400 commit 5918564

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/unit_tests/test_deplete_activation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def model():
4545

4646
@pytest.mark.parametrize("reaction_rate_mode,reaction_rate_opts,tolerance", [
4747
("direct", {}, 1e-5),
48-
("flux", {'energies': ENERGIES}, 0.01),
48+
("flux", {'energies': ENERGIES}, 0.1),
4949
("flux", {'energies': ENERGIES, 'reactions': ['(n,gamma)']}, 1e-5),
5050
("flux", {'energies': ENERGIES, 'reactions': ['(n,gamma)'], 'nuclides': ['W186', 'H3']}, 1e-2),
5151
])
@@ -61,11 +61,10 @@ def test_activation(run_in_tmpdir, model, reaction_rate_mode, reaction_rate_opts
6161
w186 = openmc.deplete.Nuclide('W186')
6262
w186.add_reaction('(n,gamma)', None, 0.0, 1.0)
6363
chain.add_nuclide(w186)
64-
chain.export_to_xml('test_chain.xml')
6564

6665
# Create transport operator
6766
op = openmc.deplete.CoupledOperator(
68-
model, 'test_chain.xml',
67+
model, chain,
6968
normalization_mode="source-rate",
7069
reaction_rate_mode=reaction_rate_mode,
7170
reaction_rate_opts=reaction_rate_opts,

0 commit comments

Comments
 (0)