added unit test

This commit is contained in:
Ethan Peterson 2022-03-10 15:37:18 -05:00
parent f85dc9dc9b
commit da53fd6e6e

View file

@ -240,3 +240,9 @@ def test_first_moment(run_in_tmpdir, box_model):
assert first_score(sph_scat_tally) == scatter
assert first_score(sph_flux_tally) == approx(flux)
assert first_score(zernike_tally) == approx(scatter)
def test_energy():
f = openmc.EnergyFilter.from_group_structure('CCFE-709')
assert f.bins.shape == (709, 2)
assert len(f.values) == 710