From 74450edc17ee86f9d9030e922ffc73e42d55656b Mon Sep 17 00:00:00 2001 From: shimwell Date: Sun, 6 Aug 2023 21:32:56 +0100 Subject: [PATCH] added args to spherical mesh --- .../4_sphere_iterative_per_batch_ww.ipynb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 5b0425e1..d7948440 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 @@ -183,8 +183,9 @@ "my_tallies = openmc.Tallies()\n", "\n", "# This spherical mesh tally is used for generating the weight windows.\n", - "mesh = openmc.SphericalMesh()\n", - "mesh.r_grid = np.linspace(0, outer_surface.r, 5000)\n", + "mesh = openmc.SphericalMesh(\n", + " r_grid = np.linspace(0, outer_surface.r, 5000)\n", + ")\n", "mesh_filter = openmc.MeshFilter(mesh)\n", "flux_tally_for_ww = openmc.Tally(name=\"flux tally\")\n", "flux_tally_for_ww.filters = [mesh_filter]\n",