Skip to content

Commit

Permalink
pep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abachma2 committed Jun 28, 2024
1 parent 6eebe3d commit 7b36520
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/unit_tests/test_depletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ def test_update_materials(self):
openmc.material.NuclideTuple('U235', 0.05, 'wo'),
openmc.material.NuclideTuple('U238', 0.95, 'wo')]
assert materials[1].nuclides == [
openmc.material.NuclideTuple('Cs137', 0.1, 'wo'),
openmc.material.NuclideTuple('Kr85', 0.80, 'wo'),
openmc.material.NuclideTuple('Cs137', 0.1, 'wo'),
openmc.material.NuclideTuple('Kr85', 0.80, 'wo'),
openmc.material.NuclideTuple('Xe135', 0.10, 'wo')]
assert materials[2].nuclides == [
openmc.material.NuclideTuple('Pu239', 0.10, 'wo'),
openmc.material.NuclideTuple('Pu239', 0.10, 'wo'),
openmc.material.NuclideTuple('Pu241', 0.90, 'wo')]
assert material_ids == [5, 6, 7]

Expand All @@ -97,5 +97,7 @@ def test_get_spent_comps(self):
assert 551370000 in spent_comps[0].keys()
assert 922350000 in spent_comps[0].keys()
assert 932410000 not in spent_comps[0].keys()
assert spent_comps[0][922350000] == pytest.approx(10.650004036820036, rel=1e-5)
assert spent_comps[0][942390000] == pytest.approx(0.22663550016678385, rel=1e-5)
assert spent_comps[0][922350000] == pytest.approx(
10.650004036820036, rel=1e-5)
assert spent_comps[0][942390000] == pytest.approx(
0.22663550016678385, rel=1e-5)

0 comments on commit 7b36520

Please sign in to comment.