diff --git a/openmc/weight_windows.py b/openmc/weight_windows.py index 1a54c1b9b..ca71a9f0f 100644 --- a/openmc/weight_windows.py +++ b/openmc/weight_windows.py @@ -585,7 +585,7 @@ def wwinp_to_wws(path): mesh=mesh, lower_ww_bounds=ww_lb.flatten(), upper_bound_ratio=5.0, - energy_bins=e_bounds, + energy_bounds=e_bounds, particle_type=particle) wws.append(ww) diff --git a/tests/unit_tests/weightwindows/test_wwinp_reader.py b/tests/unit_tests/weightwindows/test_wwinp_reader.py index b9de6b329..fdabfe18a 100644 --- a/tests/unit_tests/weightwindows/test_wwinp_reader.py +++ b/tests/unit_tests/weightwindows/test_wwinp_reader.py @@ -117,7 +117,7 @@ def test_wwinp_reader(wwinp_data): np.testing.assert_allclose(mesh.z_grid, ww.mesh.z_grid, rtol=1e-6) # check the energy bounds - np.testing.assert_array_equal(e_bounds, ww.energy_bins) + np.testing.assert_array_equal(e_bounds, ww.energy_bounds) # check the expected weight window values mocked in the file -- # a reversed array of the flat index into the numpy array