diff --git a/tests/test_asymmetric_lattice/test_asymmetric_lattice.py b/tests/test_asymmetric_lattice/test_asymmetric_lattice.py index 03e55d32f9..504cc4746b 100644 --- a/tests/test_asymmetric_lattice/test_asymmetric_lattice.py +++ b/tests/test_asymmetric_lattice/test_asymmetric_lattice.py @@ -82,11 +82,6 @@ class AsymmetricLatticeTestHarness(PyAPITestHarness): statepoint = glob.glob(os.path.join(os.getcwd(), self._sp_name))[0] sp = openmc.StatePoint(statepoint) - # Read the summary file - summary = glob.glob(os.path.join(os.getcwd(), 'summary.h5'))[0] - su = openmc.Summary(summary) - sp.link_with_summary(su) - # Extract the tally of interest tally = sp.get_tally(name='distribcell tally') @@ -96,8 +91,8 @@ class AsymmetricLatticeTestHarness(PyAPITestHarness): outstr += ', '.join(map(str, tally.std_dev.flatten())) + '\n' # Extract fuel assembly lattices from the summary - core = su.get_cell_by_id(1) - fuel = su.get_cell_by_id(80) + core = sp.summary.get_cell_by_id(1) + fuel = sp.summary.get_cell_by_id(80) fuel = fuel.fill core = core.fill diff --git a/tests/test_mgxs_library_condense/test_mgxs_library_condense.py b/tests/test_mgxs_library_condense/test_mgxs_library_condense.py index 97bb853b62..3ca98904fb 100644 --- a/tests/test_mgxs_library_condense/test_mgxs_library_condense.py +++ b/tests/test_mgxs_library_condense/test_mgxs_library_condense.py @@ -43,11 +43,6 @@ class MGXSTestHarness(PyAPITestHarness): statepoint = glob.glob(os.path.join(os.getcwd(), self._sp_name))[0] sp = openmc.StatePoint(statepoint) - # Read the summary file. - summary = glob.glob(os.path.join(os.getcwd(), 'summary.h5'))[0] - su = openmc.Summary(summary) - sp.link_with_summary(su) - # Load the MGXS library from the statepoint self.mgxs_lib.load_from_statepoint(sp) diff --git a/tests/test_mgxs_library_distribcell/test_mgxs_library_distribcell.py b/tests/test_mgxs_library_distribcell/test_mgxs_library_distribcell.py index 6812661860..d488e8ec97 100644 --- a/tests/test_mgxs_library_distribcell/test_mgxs_library_distribcell.py +++ b/tests/test_mgxs_library_distribcell/test_mgxs_library_distribcell.py @@ -46,11 +46,6 @@ class MGXSTestHarness(PyAPITestHarness): statepoint = glob.glob(os.path.join(os.getcwd(), self._sp_name))[0] sp = openmc.StatePoint(statepoint) - # Read the summary file. - summary = glob.glob(os.path.join(os.getcwd(), 'summary.h5'))[0] - su = openmc.Summary(summary) - sp.link_with_summary(su) - # Load the MGXS library from the statepoint self.mgxs_lib.load_from_statepoint(sp) diff --git a/tests/test_mgxs_library_hdf5/test_mgxs_library_hdf5.py b/tests/test_mgxs_library_hdf5/test_mgxs_library_hdf5.py index 30be46b4cc..91bb036e34 100644 --- a/tests/test_mgxs_library_hdf5/test_mgxs_library_hdf5.py +++ b/tests/test_mgxs_library_hdf5/test_mgxs_library_hdf5.py @@ -44,11 +44,6 @@ class MGXSTestHarness(PyAPITestHarness): statepoint = glob.glob(os.path.join(os.getcwd(), self._sp_name))[0] sp = openmc.StatePoint(statepoint) - # Read the summary file. - summary = glob.glob(os.path.join(os.getcwd(), 'summary.h5'))[0] - su = openmc.Summary(summary) - sp.link_with_summary(su) - # Load the MGXS library from the statepoint self.mgxs_lib.load_from_statepoint(sp) diff --git a/tests/test_mgxs_library_no_nuclides/test_mgxs_library_no_nuclides.py b/tests/test_mgxs_library_no_nuclides/test_mgxs_library_no_nuclides.py index 381b5b87c2..15f90cb872 100644 --- a/tests/test_mgxs_library_no_nuclides/test_mgxs_library_no_nuclides.py +++ b/tests/test_mgxs_library_no_nuclides/test_mgxs_library_no_nuclides.py @@ -43,11 +43,6 @@ class MGXSTestHarness(PyAPITestHarness): statepoint = glob.glob(os.path.join(os.getcwd(), self._sp_name))[0] sp = openmc.StatePoint(statepoint) - # Read the summary file. - summary = glob.glob(os.path.join(os.getcwd(), 'summary.h5'))[0] - su = openmc.Summary(summary) - sp.link_with_summary(su) - # Load the MGXS library from the statepoint self.mgxs_lib.load_from_statepoint(sp) diff --git a/tests/test_mgxs_library_nuclides/test_mgxs_library_nuclides.py b/tests/test_mgxs_library_nuclides/test_mgxs_library_nuclides.py index c3e4f5f770..113f2aa413 100644 --- a/tests/test_mgxs_library_nuclides/test_mgxs_library_nuclides.py +++ b/tests/test_mgxs_library_nuclides/test_mgxs_library_nuclides.py @@ -43,11 +43,6 @@ class MGXSTestHarness(PyAPITestHarness): statepoint = glob.glob(os.path.join(os.getcwd(), self._sp_name))[0] sp = openmc.StatePoint(statepoint) - # Read the summary file. - summary = glob.glob(os.path.join(os.getcwd(), 'summary.h5'))[0] - su = openmc.Summary(summary) - sp.link_with_summary(su) - # Load the MGXS library from the statepoint self.mgxs_lib.load_from_statepoint(sp) diff --git a/tests/test_tally_aggregation/test_tally_aggregation.py b/tests/test_tally_aggregation/test_tally_aggregation.py index 359afbe347..fdc086e682 100644 --- a/tests/test_tally_aggregation/test_tally_aggregation.py +++ b/tests/test_tally_aggregation/test_tally_aggregation.py @@ -43,11 +43,6 @@ class TallyAggregationTestHarness(PyAPITestHarness): statepoint = glob.glob(os.path.join(os.getcwd(), self._sp_name))[0] sp = openmc.StatePoint(statepoint) - # Read the summary file. - summary = glob.glob(os.path.join(os.getcwd(), 'summary.h5'))[0] - su = openmc.Summary(summary) - sp.link_with_summary(su) - # Extract the tally of interest tally = sp.get_tally(name='distribcell tally') diff --git a/tests/test_tally_arithmetic/test_tally_arithmetic.py b/tests/test_tally_arithmetic/test_tally_arithmetic.py index 8e2d2b3491..a5919909f3 100644 --- a/tests/test_tally_arithmetic/test_tally_arithmetic.py +++ b/tests/test_tally_arithmetic/test_tally_arithmetic.py @@ -62,11 +62,6 @@ class TallyArithmeticTestHarness(PyAPITestHarness): statepoint = glob.glob(os.path.join(os.getcwd(), self._sp_name))[0] sp = openmc.StatePoint(statepoint) - # Read the summary file. - summary = glob.glob(os.path.join(os.getcwd(), 'summary.h5'))[0] - su = openmc.Summary(summary) - sp.link_with_summary(su) - # Load the tallies tally_1 = sp.get_tally(name='tally 1') tally_2 = sp.get_tally(name='tally 2') diff --git a/tests/test_tally_slice_merge/test_tally_slice_merge.py b/tests/test_tally_slice_merge/test_tally_slice_merge.py index 85dd532c61..4dbb993d59 100644 --- a/tests/test_tally_slice_merge/test_tally_slice_merge.py +++ b/tests/test_tally_slice_merge/test_tally_slice_merge.py @@ -83,11 +83,6 @@ class TallySliceMergeTestHarness(PyAPITestHarness): statepoint = glob.glob(os.path.join(os.getcwd(), self._sp_name))[0] sp = openmc.StatePoint(statepoint) - # Read the summary file. - summary = glob.glob(os.path.join(os.getcwd(), 'summary.h5'))[0] - su = openmc.Summary(summary) - sp.link_with_summary(su) - # Extract the cell tally tallies = [sp.get_tally(name='cell tally')]