diff --git a/openmc_dagmc_wrapper/neutronics_model.py b/openmc_dagmc_wrapper/neutronics_model.py index c991bdd..c365f09 100644 --- a/openmc_dagmc_wrapper/neutronics_model.py +++ b/openmc_dagmc_wrapper/neutronics_model.py @@ -880,7 +880,6 @@ def simulate( ) raise FileNotFoundError(msg) - # Deletes summary.h5m if it already exists. # This avoids permission problems when trying to overwrite the file silently_remove_file("summary.h5") diff --git a/openmc_dagmc_wrapper/utils.py b/openmc_dagmc_wrapper/utils.py index 7a94f4a..22848b6 100644 --- a/openmc_dagmc_wrapper/utils.py +++ b/openmc_dagmc_wrapper/utils.py @@ -338,13 +338,14 @@ def get_neutronics_results_from_statepoint_file( return results -#to do find particles from tally +# to do find particles from tally # def find_particle_from_tally(tally): # for filter in talliy.filters: # if isinstance(filter, openmc.ParticleFilter): # return filter.bins[0] # return None + def write_3d_mesh_tally_to_vtk( xs: np.linspace, ys: np.linspace, diff --git a/tests/test_neutronics_model.py b/tests/test_neutronics_model.py index 5457984..c2c25e2 100644 --- a/tests/test_neutronics_model.py +++ b/tests/test_neutronics_model.py @@ -589,7 +589,8 @@ def test_cell_tallies_simulation_fast_flux(self): float, ) - assert my_model.results["mat1_flux"]["flux per source particle"]["result"] > my_model.results["mat1_neutron_fast_flux"]["fast flux per source particle"]["result"] + assert my_model.results["mat1_flux"]["flux per source particle"]["result"] > my_model.results[ + "mat1_neutron_fast_flux"]["fast flux per source particle"]["result"] def test_cell_tallies_simulation_effective_dose(self): """Performs simulation with h5m file and tallies neutron and photon