Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Automated autopep8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autopep8 committed Sep 10, 2021
1 parent e3462ed commit 525d4a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion openmc_dagmc_wrapper/neutronics_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 2 additions & 1 deletion openmc_dagmc_wrapper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion tests/test_neutronics_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 525d4a8

Please sign in to comment.