From 05a3a79c8a8edb61b1cfbea2aedc587d5bfb9ecd Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Sat, 8 Jan 2022 16:26:49 -0600 Subject: [PATCH] Tests: Updating import of WeightWindows class. --- tests/regression_tests/weightwindow/test.py | 22 ++++++++++----------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/tests/regression_tests/weightwindow/test.py b/tests/regression_tests/weightwindow/test.py index 195d7e017..63d773cbc 100644 --- a/tests/regression_tests/weightwindow/test.py +++ b/tests/regression_tests/weightwindow/test.py @@ -4,7 +4,6 @@ import numpy as np import openmc from openmc.stats import Discrete, Point -from openmc.weight_windows import WeightWindows from tests.testing_harness import HashedPyAPITestHarness @@ -77,7 +76,6 @@ def model(): # weight windows - # load pre-generated weight windows # (created using the same tally as above) ww_n_lower_bnds = np.loadtxt('ww_n.txt') @@ -90,17 +88,17 @@ def model(): ww_mesh.upper_right = (240, 240, 240) ww_mesh.dimension = (5, 6, 7) - ww_n = WeightWindows(ww_mesh, - ww_n_lower_bnds, - None, - 10.0, - e_bnds) + ww_n = openmc.WeightWindows(ww_mesh, + ww_n_lower_bnds, + None, + 10.0, + e_bnds) - ww_p = WeightWindows(ww_mesh, - ww_p_lower_bnds, - None, - 10.0, - e_bnds) + ww_p = openmc.WeightWindows(ww_mesh, + ww_p_lower_bnds, + None, + 10.0, + e_bnds) model.settings.weight_windows = [ww_n, ww_p]