From 9d69c4297dcaddc3af4374ab9454f8a5cc4df92c Mon Sep 17 00:00:00 2001 From: shimwell Date: Tue, 12 Dec 2023 23:12:24 +0000 Subject: [PATCH] removing need for os.system call --- .../2_faster_mulitiple_puse_shut_down_dose_rate_example.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tasks/task_11_CSG_shut_down_dose_tallies/2_faster_mulitiple_puse_shut_down_dose_rate_example.py b/tasks/task_11_CSG_shut_down_dose_tallies/2_faster_mulitiple_puse_shut_down_dose_rate_example.py index 4e096e9f..ff3dc249 100644 --- a/tasks/task_11_CSG_shut_down_dose_tallies/2_faster_mulitiple_puse_shut_down_dose_rate_example.py +++ b/tasks/task_11_CSG_shut_down_dose_tallies/2_faster_mulitiple_puse_shut_down_dose_rate_example.py @@ -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.