diff --git a/tasks/task_07_CSG_cell_tally_spectra/1_example_neutron_flux_and_units.ipynb b/tasks/task_07_CSG_cell_tally_spectra/1_example_neutron_flux_and_units.ipynb index 897a4280..d7d8c7dc 100644 --- a/tasks/task_07_CSG_cell_tally_spectra/1_example_neutron_flux_and_units.ipynb +++ b/tasks/task_07_CSG_cell_tally_spectra/1_example_neutron_flux_and_units.ipynb @@ -115,7 +115,7 @@ "model = openmc.model.Model(my_geometry, my_materials, my_settings, my_tallies)\n", "\n", "# remove old files and runs OpenMC\n", - "!rm *.h5\n", + "!rm *.h5 || true\n", "results_filename = model.run()" ] }, diff --git a/tasks/task_07_CSG_cell_tally_spectra/2_example_neutron_spectra_on_cell.ipynb b/tasks/task_07_CSG_cell_tally_spectra/2_example_neutron_spectra_on_cell.ipynb index 92268920..52e2c62d 100644 --- a/tasks/task_07_CSG_cell_tally_spectra/2_example_neutron_spectra_on_cell.ipynb +++ b/tasks/task_07_CSG_cell_tally_spectra/2_example_neutron_spectra_on_cell.ipynb @@ -125,7 +125,7 @@ "model = openmc.model.Model(my_geometry, my_materials, my_settings, my_tallies)\n", "\n", "# remove old files and runs OpenMC\n", - "!rm *.h5\n", + "!rm *.h5 || true\n", "results_filename = model.run()" ] }, diff --git a/tasks/task_07_CSG_cell_tally_spectra/3_example_neutron_spectra_on_surface.ipynb b/tasks/task_07_CSG_cell_tally_spectra/3_example_neutron_spectra_on_surface.ipynb index 71b98653..399d493d 100644 --- a/tasks/task_07_CSG_cell_tally_spectra/3_example_neutron_spectra_on_surface.ipynb +++ b/tasks/task_07_CSG_cell_tally_spectra/3_example_neutron_spectra_on_surface.ipynb @@ -158,7 +158,7 @@ "model = openmc.model.Model(my_geometry, my_materials, my_settings, my_tallies)\n", "\n", "# remove old files and runs OpenMC\n", - "!rm *.h5\n", + "!rm *.h5 || true\n", "results_filename = model.run()" ] }, diff --git a/tasks/task_07_CSG_cell_tally_spectra/4_example_photon_spectra.ipynb b/tasks/task_07_CSG_cell_tally_spectra/4_example_photon_spectra.ipynb index 9c9c1313..b54640f5 100644 --- a/tasks/task_07_CSG_cell_tally_spectra/4_example_photon_spectra.ipynb +++ b/tasks/task_07_CSG_cell_tally_spectra/4_example_photon_spectra.ipynb @@ -122,7 +122,7 @@ "model = openmc.model.Model(my_geometry, my_materials, my_settings, my_tallies)\n", "\n", "# remove old files and runs OpenMC\n", - "!rm *.h5\n", + "!rm *.h5 || true\n", "results_filename = model.run()" ] }, diff --git a/tasks/task_07_CSG_cell_tally_spectra/5_neutron_energy_loss_plot.ipynb b/tasks/task_07_CSG_cell_tally_spectra/5_neutron_energy_loss_plot.ipynb index 58a7cf01..7fc28891 100644 --- a/tasks/task_07_CSG_cell_tally_spectra/5_neutron_energy_loss_plot.ipynb +++ b/tasks/task_07_CSG_cell_tally_spectra/5_neutron_energy_loss_plot.ipynb @@ -112,7 +112,7 @@ "outputs": [], "source": [ "# remove old summary and statepoint files\n", - "!rm *.h5\n", + "!rm *.h5 || true\n", "\n", "for element, color in zip([liquid_hydrogen, tungsten], [\"red\", \"blue\"]):\n", " plt.plot([0], label=element, color=color)\n",