Skip to content

Commit 103629c

Browse files
GuyStenshimwell
andauthored
Apply suggestions from code review
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
1 parent 5828551 commit 103629c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/unit_tests/test_void.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ def empty_sphere():
1717
model.settings.source = openmc.IndependentSource(space=openmc.stats.Point())
1818

1919
tally = openmc.Tally()
20-
tally.scores = ['fission']
20+
tally.scores = ['total', elastic]
2121
tally.nuclides = ['U235']
22-
22+
tally.multiply_density = False
2323
model.tallies.append(tally)
2424

2525
return model
@@ -39,4 +39,5 @@ def test_equivalent_microxs(empty_sphere, run_in_tmpdir):
3939
with openmc.StatePoint(sp_file) as sp:
4040
tally2 = sp.tallies[1]
4141

42-
assert np.isclose(tally1.mean.sum(),tally2.mean.sum(), rtol=1e-10, atol=0)
42+
assert np.isclose(tally1.mean.sum(),tally2.mean.sum(), rtol=1e-10, atol=0)
43+
assert tally1.mean.sum() > 0

0 commit comments

Comments
 (0)