Skip to content

Commit

Permalink
updated type check for energy
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Mar 30, 2023
1 parent 0523319 commit ed2b47a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_point_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_creation():
# Ensure it has space, angle, and energy set
assert isinstance(my_source.space, openmc.stats.Point)
assert isinstance(my_source.angle, openmc.stats.Isotropic)
assert isinstance(my_source.energy, openmc.stats.muir)
assert isinstance(my_source.energy, openmc.stats.univariate.Normal)


@pytest.mark.parametrize(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ring_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_creation():
# Ensure it has space, angle, and energy set
assert isinstance(my_source.space, openmc.stats.CylindricalIndependent)
assert isinstance(my_source.angle, openmc.stats.Isotropic)
assert isinstance(my_source.energy, openmc.stats.muir)
assert isinstance(my_source.energy, openmc.stats.univariate.Normal)


@pytest.mark.parametrize("radius", [1.0, 5.6, 1e5, 7])
Expand Down

0 comments on commit ed2b47a

Please sign in to comment.