From beafda024c30ad759f5fd0a3a1e550f17cd7a34a Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Fri, 7 Jul 2023 14:34:51 +0100 Subject: [PATCH] works locally --- .../1_shielded_room_survival_biasing.ipynb | 3 +-- .../2_shielded_room_single_ww.ipynb | 4 +--- .../3_sphere_iterative_per_run_ww.ipynb | 4 ---- .../4_sphere_iterative_per_batch_ww.ipynb | 2 +- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/tasks/task_13_variance_reduction/1_shielded_room_survival_biasing.ipynb b/tasks/task_13_variance_reduction/1_shielded_room_survival_biasing.ipynb index 77e9fda7..b038dd5a 100644 --- a/tasks/task_13_variance_reduction/1_shielded_room_survival_biasing.ipynb +++ b/tasks/task_13_variance_reduction/1_shielded_room_survival_biasing.ipynb @@ -30,7 +30,6 @@ "outputs": [], "source": [ "import openmc\n", - "import numpy as np\n", "from matplotlib import pyplot as plt\n", "from matplotlib.colors import LogNorm # used for plotting log scale graphs" ] @@ -412,7 +411,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.10" + "version": "3.8.13" }, "orig_nbformat": 4 }, diff --git a/tasks/task_13_variance_reduction/2_shielded_room_single_ww.ipynb b/tasks/task_13_variance_reduction/2_shielded_room_single_ww.ipynb index 839ea997..f67883a4 100644 --- a/tasks/task_13_variance_reduction/2_shielded_room_single_ww.ipynb +++ b/tasks/task_13_variance_reduction/2_shielded_room_single_ww.ipynb @@ -102,7 +102,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", "width_a = 100\n", "width_b = 100\n", "width_c = 500\n", @@ -213,7 +212,6 @@ "metadata": {}, "outputs": [], "source": [ - "\n", "geometry.root_universe.plot(basis='xy', color_by='material') \n", "plt.savefig('geometry_top_down_view.png', bbox_inches=\"tight\")" ] @@ -543,7 +541,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.10" + "version": "3.8.13" } }, "nbformat": 4, diff --git a/tasks/task_13_variance_reduction/3_sphere_iterative_per_run_ww.ipynb b/tasks/task_13_variance_reduction/3_sphere_iterative_per_run_ww.ipynb index 1706741f..d3b9a102 100644 --- a/tasks/task_13_variance_reduction/3_sphere_iterative_per_run_ww.ipynb +++ b/tasks/task_13_variance_reduction/3_sphere_iterative_per_run_ww.ipynb @@ -42,8 +42,6 @@ "import openmc\n", "import openmc.lib # this example makes use of openmc lib to run the simulations\n", "\n", - "import numpy as np\n", - "\n", "from matplotlib import pyplot as plt\n", "from matplotlib.colors import LogNorm # used for plotting log scale graphs" ] @@ -165,8 +163,6 @@ "outputs": [], "source": [ "mesh = openmc.RegularMesh().from_domain(domain=my_geometry)\n", - "print(mesh)\n", - "# mesh.r_grid = np.linspace(0, outer_surface.r, 100)\n", "\n", "mesh_filter = openmc.MeshFilter(mesh)\n", "\n", diff --git a/tasks/task_13_variance_reduction/4_sphere_iterative_per_batch_ww.ipynb b/tasks/task_13_variance_reduction/4_sphere_iterative_per_batch_ww.ipynb index 334bdf93..74591dfc 100644 --- a/tasks/task_13_variance_reduction/4_sphere_iterative_per_batch_ww.ipynb +++ b/tasks/task_13_variance_reduction/4_sphere_iterative_per_batch_ww.ipynb @@ -266,7 +266,7 @@ "\n", " # gets a live pointer to the tally, this updates as the tally is accumulated\n", " spectra_tally = openmc.lib.tallies[outer_surface_spectra_tally.id]\n", - " \n", + "\n", " # simulation_init is needed prior to iter_batches\n", " openmc.lib.simulation_init()\n", "\n",