Skip to content

Commit

Permalink
Merge pull request #259 from fusion-energy/adding_path_to_integrate_call
Browse files Browse the repository at this point in the history
removing need for os.system call in example
  • Loading branch information
shimwell authored Jan 1, 2024
2 parents c4acab3 + 9d69c42 commit 4e71653
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,7 @@

# this runs the depletion calculations for the timesteps
# this does the neutron activation simulations and produces a depletion_results.h5 file
integrator.integrate()
# TODO add output dir to integrate command so we don't have to move the file like this
# integrator.integrate(path=statepoints_folder / "neutrons" / "depletion_results.h5")
# PR on openmc is open
import os
os.system(f'mv depletion_results.h5 {statepoints_folder / "neutrons" / "depletion_results.h5"}')
integrator.integrate(path=statepoints_folder / "neutrons" / "depletion_results.h5")

# Now we have done the neutron activation simulations we can start the work needed for the decay gamma simulations.

Expand Down

0 comments on commit 4e71653

Please sign in to comment.