Skip to content

Commit

Permalink
added true to rm cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Oct 17, 2024
1 parent 81e4d20 commit 10995a6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 10995a6

Please sign in to comment.