mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Use a.all() for equality in capi EnergyFunctionFilter tests
This commit is contained in:
parent
9b7ab0bacb
commit
9d952c3c58
1 changed files with 2 additions and 2 deletions
|
|
@ -188,9 +188,9 @@ def test_energy_function_filter(capi_init):
|
|||
"""Test special __new__ and __init__ for EnergyFunctionFilter"""
|
||||
efunc = openmc.capi.EnergyFunctionFilter([0.0, 1.0], [0.0, 2.0])
|
||||
assert len(efunc.energy) == 2
|
||||
assert efunc.energy == [0.0, 1.0]
|
||||
assert (efunc.energy == [0.0, 1.0]).all()
|
||||
assert len(efunc.y) == 2
|
||||
assert efunc.y == [0.0, 2.0]
|
||||
assert (efunc.y == [0.0, 2.0]).all()
|
||||
|
||||
|
||||
def test_tally(capi_init):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue